Class AveragePrecisionEvaluation

  • All Implemented Interfaces:
    ScoreEvaluation

    public class AveragePrecisionEvaluation
    extends java.lang.Object
    implements ScoreEvaluation
    Evaluate using average precision.
    Since:
    0.7.0
    Author:
    Erich Schubert
    • Constructor Detail

      • AveragePrecisionEvaluation

        public AveragePrecisionEvaluation()
    • Method Detail

      • expected

        public double expected​(int pos,
                               int all)
        Description copied from interface: ScoreEvaluation
        Expected score for a random result.
        Specified by:
        expected in interface ScoreEvaluation
        Parameters:
        pos - Number of positive elements
        all - Total number of elements
        Returns:
        Expected score