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

com.bbn.bue.common.evaluation.PrecisionRecallPair Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package com.bbn.bue.common.evaluation;

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

public final class PrecisionRecallPair extends FMeasureInfo {

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

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

  public float precision() {
    return precision;
  }

  public float recall() {
    return recall;
  }

  private final float precision;
  private final float recall;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy