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 |
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 String |
SCORE_ERROR_MESSAGE |
Constructor and Description |
---|
NXYSignificanceHeuristic(boolean includeNegatives,
boolean backgroundIsSuperset) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkFrequencies(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize,
String scoreFunctionName) |
protected NXYSignificanceHeuristic.Frequencies |
computeNxys(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize,
String scoreFunctionName) |
boolean |
equals(Object other) |
int |
hashCode() |
void |
writeTo(StreamOutput out) |
checkFrequencyValidity, getScore, initialize
protected static final ParseField BACKGROUND_IS_SUPERSET
protected static final ParseField INCLUDE_NEGATIVES_FIELD
protected static final String SCORE_ERROR_MESSAGE
protected final boolean backgroundIsSuperset
protected final boolean includeNegatives
public NXYSignificanceHeuristic(boolean includeNegatives, boolean backgroundIsSuperset)
public void writeTo(StreamOutput out) throws IOException
writeTo
in class SignificanceHeuristic
IOException
protected NXYSignificanceHeuristic.Frequencies computeNxys(long subsetFreq, long subsetSize, long supersetFreq, long supersetSize, String scoreFunctionName)
protected void checkFrequencies(long subsetFreq, long subsetSize, long supersetFreq, long supersetSize, String scoreFunctionName)
Copyright © 2009–2016. All rights reserved.