|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatapreparation.weighting.WeightHelper
public class WeightHelper
Class implementing all weighting functions used in the application.
Constructor Summary | |
---|---|
WeightHelper()
|
Method Summary | |
---|---|
static double |
computeTfIdf(int numDocsTotal,
int numDocsOcc,
int nOccMax,
int nOccThisDoc)
method implementing the computation of a TfIdf weight. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WeightHelper()
Method Detail |
---|
public static double computeTfIdf(int numDocsTotal, int numDocsOcc, int nOccMax, int nOccThisDoc)
numDocsTotal
- Total number of documentsnumDocsOcc
- Number of documents that contain current itemnOccMax
- Frequency of the most frequent item in current documentnOccThisDoc
- Frequenco of this item in current document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |