All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.isi.nlp.evaluation.PrecisionRecallPair Maven / Gradle / Ivy

The newest version!
package edu.isi.nlp.evaluation;

import static com.google.common.base.Preconditions.checkArgument;

public final class PrecisionRecallPair extends FMeasureInfo {

  public PrecisionRecallPair(double precision, double recall) {
    checkArgument(precision >= 0.0);
    checkArgument(recall >= 0.0);

    this.precision = precision;
    this.recall = recall;
  }

  @Override
  public double precision() {
    return precision;
  }

  @Override
  public double recall() {
    return recall;
  }

  private final double precision;
  private final double recall;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy