Class ScoreDifferencePercentage
- java.lang.Object
-
- org.optaplanner.benchmark.impl.measurement.ScoreDifferencePercentage
-
public class ScoreDifferencePercentage extends Object
-
-
Constructor Summary
Constructors Constructor Description ScoreDifferencePercentage(double[] percentageLevels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScoreDifferencePercentage
add(ScoreDifferencePercentage addend)
static double
calculateDifferencePercentage(double base, double value)
static <Score_ extends Score<Score_>>
ScoreDifferencePercentagecalculateScoreDifferencePercentage(Score_ baseScore, Score_ valueScore)
ScoreDifferencePercentage
divide(double divisor)
double[]
getPercentageLevels()
ScoreDifferencePercentage
multiply(double multiplicand)
ScoreDifferencePercentage
subtract(ScoreDifferencePercentage subtrahend)
String
toString()
String
toString(Locale locale)
-
-
-
Method Detail
-
calculateScoreDifferencePercentage
public static <Score_ extends Score<Score_>> ScoreDifferencePercentage calculateScoreDifferencePercentage(Score_ baseScore, Score_ valueScore)
-
calculateDifferencePercentage
public static double calculateDifferencePercentage(double base, double value)
-
getPercentageLevels
public double[] getPercentageLevels()
-
add
public ScoreDifferencePercentage add(ScoreDifferencePercentage addend)
-
subtract
public ScoreDifferencePercentage subtract(ScoreDifferencePercentage subtrahend)
-
multiply
public ScoreDifferencePercentage multiply(double multiplicand)
-
divide
public ScoreDifferencePercentage divide(double divisor)
-
-