Class JLHScore

    • Constructor Detail

      • JLHScore

        public JLHScore()
      • JLHScore

        public JLHScore​(StreamInput in)
        Read from a stream.
    • Method Detail

      • writeTo

        public void writeTo​(StreamOutput out)
        Description copied from interface: Writeable
        Write this into the StreamOutput.
      • getWriteableName

        public java.lang.String getWriteableName()
        Description copied from interface: NamedWriteable
        Returns the name of the writeable object
      • getScore

        public 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. This is the heart of the significant terms feature.
        Specified by:
        getScore in class SignificanceHeuristic
        subsetFreq - The frequency of the term in the selected sample
        subsetSize - The size of the selected sample (typically number of docs)
        supersetFreq - The frequency of the term in the superset from which the sample was taken
        supersetSize - The size of the superset from which the sample was taken (typically number of docs)
        a "significance" score
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object