Method QueryNorm
QueryNorm(Single)
Computes the normalization value for a query given the sum of the normalized weights GetValueForNormalization() of each of the query terms. this value is passed back to the weight (Normalize(Single, Single) of each query term, to provide a hook to attempt to make scores from different queries comparable.
By default this is disabled (returns 1
), but some
implementations such as TFIDFSimilarity override this.
Declaration
public virtual float QueryNorm(float valueForNormalization)
Parameters
Type | Name | Description |
---|---|---|
System.Single | valueForNormalization | the sum of the term normalization values |
Returns
Type | Description |
---|---|
System.Single | a normalization factor for query weights |