similarity
Class LTC_LTC

java.lang.Object
  extended bysimilarity.VSM
      extended bysimilarity.LTC_LTC

public class LTC_LTC
extends VSM

LTC_LTC weighting scheme on VSM

See Also:
VSM

Field Summary
 
Fields inherited from class similarity.VSM
N, thesauri
 
Constructor Summary
LTC_LTC(Thesaurus thesauri)
           
 
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 similarity.VSM
similarity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LTC_LTC

public LTC_LTC(Thesaurus thesauri)
Method Detail

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