public abstract class SignificanceHeuristic extends Object
Constructor and Description |
---|
SignificanceHeuristic() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkFrequencyValidity(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize,
String scoreFunctionName) |
abstract double |
getScore(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize) |
void |
initialize(InternalAggregation.ReduceContext reduceContext) |
abstract void |
writeTo(StreamOutput out) |
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)public abstract void writeTo(StreamOutput out) throws IOException
IOException
protected void checkFrequencyValidity(long subsetFreq, long subsetSize, long supersetFreq, long supersetSize, String scoreFunctionName)
public void initialize(InternalAggregation.ReduceContext reduceContext)
Copyright © 2009–2016. All rights reserved.