public class JLHScore extends SignificanceHeuristic
| Modifier and Type | Class and Description |
|---|---|
static class |
JLHScore.JLHScoreBuilder |
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
EMPTY_PARAMS| Constructor and Description |
|---|
JLHScore() |
JLHScore(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getScore(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize)
Calculates the significance of a term in a sample against a background of
normal distributions by comparing the changes in frequency.
|
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
int |
hashCode() |
static SignificanceHeuristic |
parse(XContentParser parser) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
checkFrequencyValidity, rewrite, rewriteclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final java.lang.String NAME
public JLHScore()
public JLHScore(StreamInput in)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablepublic double getScore(long subsetFreq,
long subsetSize,
long supersetFreq,
long supersetSize)
getScore in class SignificanceHeuristicsubsetFreq - 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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic static SignificanceHeuristic parse(XContentParser parser) throws java.io.IOException, QueryShardException
java.io.IOExceptionQueryShardExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object