Class AxiomaticF3LOG
- java.lang.Object
-
- org.apache.lucene.search.similarities.Similarity
-
- org.apache.lucene.search.similarities.SimilarityBase
-
- org.apache.lucene.search.similarities.Axiomatic
-
- org.apache.lucene.search.similarities.AxiomaticF3LOG
-
public class AxiomaticF3LOG extends Axiomatic
F2EXP is defined as Sum(tf(term_doc_freq)*IDF(term)-gamma(docLen, queryLen)) where IDF(t) = ln((N+1)/df(t)) N=total num of docs, df=doc freq gamma(docLen, queryLen) = (docLen-queryLen)*queryLen*s/avdl- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.similarities.Similarity
Similarity.SimScorer, Similarity.SimWeight
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.similarities.SimilarityBase
discountOverlaps
-
-
Constructor Summary
Constructors Constructor Description AxiomaticF3LOG(float s, int queryLen)Constructor setting s and queryLen, letting k to default
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected floatgamma(BasicStats stats, float freq, float docLen)compute the gamma componentprotected floatidf(BasicStats stats, float freq, float docLen)compute the inverted document frequency componentprotected floatln(BasicStats stats, float freq, float docLen)compute the document length componentprotected floattf(BasicStats stats, float freq, float docLen)compute the term frequency componentprotected floattfln(BasicStats stats, float freq, float docLen)compute the mixed term frequency and document length componentStringtoString()Name of the axiomatic method.-
Methods inherited from class org.apache.lucene.search.similarities.SimilarityBase
computeNorm, computeWeight, explain, fillBasicStats, getDiscountOverlaps, log2, newStats, setDiscountOverlaps, simScorer
-
-
-
-
Method Detail
-
toString
public String toString()
Description copied from class:AxiomaticName of the axiomatic method.
-
tf
protected float tf(BasicStats stats, float freq, float docLen)
compute the term frequency component
-
ln
protected float ln(BasicStats stats, float freq, float docLen)
compute the document length component
-
tfln
protected float tfln(BasicStats stats, float freq, float docLen)
compute the mixed term frequency and document length component
-
idf
protected float idf(BasicStats stats, float freq, float docLen)
compute the inverted document frequency component
-
gamma
protected float gamma(BasicStats stats, float freq, float docLen)
compute the gamma component
-
-