Example usage for org.apache.commons.math.util MathUtils compareTo

List of usage examples for org.apache.commons.math.util MathUtils compareTo

Introduction

In this page you can find the example usage for org.apache.commons.math.util MathUtils compareTo.

Prototype

public static int compareTo(double x, double y, double eps) 

Source Link

Document

Compares two numbers given some amount of allowed error.

Usage

From source file:com.griddynamics.jagger.engine.e1.reporting.DefaultSessionStatusDecisionMaker.java

@Override
public Decision decideOnTest(WorkloadTaskData workloadTaskData) {
    if (MathUtils.compareTo(workloadTaskData.getSuccessRate().doubleValue(), successRateThreshold,
            epsilon) >= 0) {//from  w  ww.j  a  va  2 s.  co m
        return Decision.OK;
    }
    return Decision.FATAL;
}