b property

double b

Implementation

double get b => _b;
void b=(double number)

A parameter to tune the amount of field length normalisation that is applied when calculating relevance scores. A value of 0 will completely disable any normalisation and a value of 1 will fully normalise field lengths. The default is 0.75. Values of b will be clamped to the range 0 - 1.

number - The value to set for this tuning parameter.

Implementation

set b(double number) {
  if (number < 0) {
    _b = 0;
  } else if (number > 1) {
    _b = 1;
  } else {
    _b = number;
  }
}