public class AxiomaticF1LOG extends Axiomatic
Similarity.SimScorer, Similarity.SimWeight
discountOverlaps
Constructor and Description |
---|
AxiomaticF1LOG()
Default constructor
|
AxiomaticF1LOG(float s)
Constructor setting s only, letting k and queryLen 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 AxiomaticF1LOG(float s)
s
- hyperparam for the growth functionpublic AxiomaticF1LOG()
public 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.