public float weight(int contentLength, int totalTermFreq) {float numDocs = 1 + contentLength / pivot;return (k1 + 1) * (float) Math.log(1 + (numDocs + 0.5D) / (totalTermFreq + 0.5D));}
public virtual float Weight(int contentLength, int totalTermFreq){float numDocs = 1 + contentLength / pivot;return (k1 + 1) * (float)Math.Log(1 + (numDocs + 0.5D) / (totalTermFreq + 0.5D));}