public abstract class NXYSignificanceHeuristic extends SignificanceHeuristic
Modifier and Type | Class and Description |
---|---|
protected static class |
NXYSignificanceHeuristic.Frequencies |
protected static class |
NXYSignificanceHeuristic.NXYBuilder |
static class |
NXYSignificanceHeuristic.NXYParser |
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected static ParseField |
BACKGROUND_IS_SUPERSET |
protected boolean |
backgroundIsSuperset |
protected static ParseField |
INCLUDE_NEGATIVES_FIELD |
protected boolean |
includeNegatives
Some heuristics do not differentiate between terms that are descriptive for subset or for
the background without the subset.
|
protected static java.lang.String |
SCORE_ERROR_MESSAGE |
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
NXYSignificanceHeuristic(boolean includeNegatives,
boolean backgroundIsSuperset) |
protected |
NXYSignificanceHeuristic(StreamInput in)
Read from a stream.
|
Modifier and Type | Method and Description |
---|---|
protected void |
build(XContentBuilder builder) |
protected void |
checkFrequencies(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize,
java.lang.String scoreFunctionName) |
protected NXYSignificanceHeuristic.Frequencies |
computeNxys(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize,
java.lang.String scoreFunctionName) |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
checkFrequencyValidity, getScore, rewrite, rewrite
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getWriteableName
isFragment, toXContent
protected static final ParseField BACKGROUND_IS_SUPERSET
protected static final ParseField INCLUDE_NEGATIVES_FIELD
protected static final java.lang.String SCORE_ERROR_MESSAGE
protected final boolean backgroundIsSuperset
protected final boolean includeNegatives
protected NXYSignificanceHeuristic(boolean includeNegatives, boolean backgroundIsSuperset)
protected NXYSignificanceHeuristic(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
java.io.IOException
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected NXYSignificanceHeuristic.Frequencies computeNxys(long subsetFreq, long subsetSize, long supersetFreq, long supersetSize, java.lang.String scoreFunctionName)
protected void checkFrequencies(long subsetFreq, long subsetSize, long supersetFreq, long supersetSize, java.lang.String scoreFunctionName)
protected void build(XContentBuilder builder) throws java.io.IOException
java.io.IOException