public class AxiomaticF3LOG extends Axiomatic
Similarity.SimScorer, Similarity.SimWeight
discountOverlaps
Constructor and Description |
---|
AxiomaticF3LOG(float s,
int queryLen)
Constructor setting s and queryLen, letting k to default
|
Modifier and Type | Method and Description |
---|---|
protected float |
gamma(BasicStats stats,
float freq,
float docLen)
compute the gamma component
|
protected float |
idf(BasicStats stats,
float freq,
float docLen)
compute the inverted document frequency component
|
protected float |
ln(BasicStats stats,
float freq,
float docLen)
compute the document length component
|
protected float |
tf(BasicStats stats,
float freq,
float docLen)
compute the term frequency component
|
protected float |
tfln(BasicStats stats,
float freq,
float docLen)
compute the mixed term frequency and document length component
|
String |
toString()
Name of the axiomatic method.
|
computeNorm, computeWeight, explain, fillBasicStats, getDiscountOverlaps, log2, newStats, setDiscountOverlaps, simScorer
public AxiomaticF3LOG(float s, int queryLen)
s
- hyperparam for the growth functionqueryLen
- the query lengthpublic String toString()
Axiomatic
protected float tf(BasicStats stats, float freq, float docLen)
protected float ln(BasicStats stats, float freq, float docLen)
protected float tfln(BasicStats stats, float freq, float docLen)
protected float idf(BasicStats stats, float freq, float docLen)
protected float gamma(BasicStats stats, float freq, float docLen)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.