Class JLHScore

    • Constructor Detail

      • JLHScore

        public JLHScore()
      • JLHScore

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

      • writeTo

        public void writeTo​(StreamOutput out)
                     throws java.io.IOException
        Description copied from interface: Writeable
        Write this into the StreamOutput.
        Throws:
        java.io.IOException
      • 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
        Parameters:
        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)
        Returns:
        a "significance" score
      • equals

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

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