similarity
Class LTC_LTC
java.lang.Object
similarity.VSM
similarity.LTC_LTC
- public class LTC_LTC
- extends VSM
LTC_LTC weighting scheme on VSM
- See Also:
VSM
Method Summary |
protected double |
firstNorm(java.util.List d1)
The normalization for the first document |
protected double |
firstValue(Term term)
The tf * idf according to scheme for the first document; returning one element of Sigma |
protected double |
secondNorm(java.util.List d2)
The normalization for the second document |
protected double |
secondValue(Term term)
The tf * idf according to scheme for the second document; returning one element of Sigma |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LTC_LTC
public LTC_LTC(Thesaurus thesauri)
firstValue
protected double firstValue(Term term)
- Description copied from class:
VSM
- The tf * idf according to scheme for the first document; returning one element of Sigma
- Specified by:
firstValue
in class VSM
- Parameters:
term
- the for which the value will be computed
- Returns:
- one element of Sigma
secondValue
protected double secondValue(Term term)
- Description copied from class:
VSM
- The tf * idf according to scheme for the second document; returning one element of Sigma
- Specified by:
secondValue
in class VSM
- Parameters:
term
- the for which the value will be computed
- Returns:
- one element of Sigma
firstNorm
protected double firstNorm(java.util.List d1)
- Description copied from class:
VSM
- The normalization for the first document
- Specified by:
firstNorm
in class VSM
- Parameters:
d1
- the document to be normalized
- Returns:
- normalization value of document
secondNorm
protected double secondNorm(java.util.List d2)
- Description copied from class:
VSM
- The normalization for the second document
- Specified by:
secondNorm
in class VSM
- Parameters:
d2
- the document to be normalized
- Returns:
- normalization value of document