NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
ChiSquare
, GND
, MutualInformation
public abstract class NXYSignificanceHeuristic extends SignificanceHeuristic
Modifier and Type | Class | Description |
---|---|---|
protected static class |
NXYSignificanceHeuristic.Frequencies |
|
protected static class |
NXYSignificanceHeuristic.NXYBuilder |
|
static class |
NXYSignificanceHeuristic.NXYParser |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | 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 | Description |
---|---|---|
protected |
NXYSignificanceHeuristic(boolean includeNegatives,
boolean backgroundIsSuperset) |
|
protected |
NXYSignificanceHeuristic(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | 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 obj) |
|
int |
hashCode() |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
getWriteableName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
checkFrequencyValidity, getScore, rewrite, rewrite
toXContent
isFragment
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 obj)
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