Method QueryNorm
QueryNorm(Single)
Computes the normalization value for a query given the sum of the squared weights of each of the query terms. this value is multiplied into the weight of each query term. While the classic query normalization factor is computed as 1/sqrt(sumOfSquaredWeights), other implementations might completely ignore sumOfSquaredWeights (ie return 1).
This does not affect ranking, but the default implementation does make scores from different queries more comparable than they would be by eliminating the magnitude of the Query vector as a factor in the score.
Declaration
public abstract override float QueryNorm(float sumOfSquaredWeights)
Parameters
Type | Name | Description |
---|---|---|
System.Single | sumOfSquaredWeights | The sum of the squares of query term weights |
Returns
Type | Description |
---|---|
System.Single | A normalization factor for query weights |