Methods Summary |
---|
public float | coord(int overlap, int maxOverlap)Implemented as overlap / maxOverlap .
return overlap / (float)maxOverlap;
|
public float | idf(int docFreq, int numDocs)Implemented as log(numDocs/(docFreq+1)) + 1 .
return (float)(Math.log(numDocs/(double)(docFreq+1)) + 1.0);
|
public float | lengthNorm(java.lang.String fieldName, int numTerms)Implemented as 1/sqrt(numTerms) .
return (float)(1.0 / Math.sqrt(numTerms));
|
public float | queryNorm(float sumOfSquaredWeights)Implemented as 1/sqrt(sumOfSquaredWeights) .
return (float)(1.0 / Math.sqrt(sumOfSquaredWeights));
|
public float | sloppyFreq(int distance)Implemented as 1 / (distance + 1) .
return 1.0f / (distance + 1);
|
public float | tf(float freq)Implemented as sqrt(freq) .
return (float)Math.sqrt(freq);
|