Method Tf
Tf(Int32, Int32)
Computes term weight, given the frequency within the passage and the passage's length.
Declaration
public virtual float Tf(int freq, int passageLen)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | freq | number of occurrences of within this passage |
System.Int32 | passageLen | length of the passage in characters. |
Returns
Type | Description |
---|---|
System.Single | term weight |