Class PercentageScore

    • Constructor Detail

      • PercentageScore

        public PercentageScore()
      • PercentageScore

        public PercentageScore​(StreamInput in)
    • 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)
        Indicates the significance of a term in a sample by determining what percentage of all occurrences of a term are found in the sample.
        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