NamedWriteable, Writeable, ToXContent, ToXContentFragmentChiSquare, GND, MutualInformationpublic 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.ParamsWriteable.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.
|
getWriteableNameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcheckFrequencyValidity, getScore, rewrite, rewritetoXContentisFragmentprotected 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.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected 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