public abstract class SignificanceHeuristic extends java.lang.Object implements NamedWriteable, ToXContent
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
SignificanceHeuristic() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkFrequencyValidity(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize,
java.lang.String scoreFunctionName) |
abstract double |
getScore(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize) |
void |
initialize(InternalAggregation.ReduceContext reduceContext) |
void |
initialize(SearchContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWriteableName
toXContent
public abstract double getScore(long subsetFreq, long subsetSize, long supersetFreq, long supersetSize)
subsetFreq
- The frequency of the term in the selected samplesubsetSize
- The size of the selected sample (typically number of docs)supersetFreq
- The frequency of the term in the superset from which the sample was takensupersetSize
- The size of the superset from which the sample was taken (typically number of docs)protected void checkFrequencyValidity(long subsetFreq, long subsetSize, long supersetFreq, long supersetSize, java.lang.String scoreFunctionName)
public void initialize(InternalAggregation.ReduceContext reduceContext)
public void initialize(SearchContext context)