public class NormalizedEvaluation extends Object implements org.jamesframework.core.problems.objectives.evaluations.Evaluation
Constructor and Description |
---|
NormalizedEvaluation(org.jamesframework.core.problems.objectives.evaluations.Evaluation eval,
double min,
double max)
Create a normalized evaluation that wraps the given evaluation
and normalizes its values from [min, max] to [0, 1].
|
Modifier and Type | Method and Description |
---|---|
org.jamesframework.core.problems.objectives.evaluations.Evaluation |
getUnnormalizedEvaluation()
Get the original, unnormalized evaluation.
|
double |
getValue()
Calculates normalized evaluation in [0, 1].
|
String |
toString()
Format value as string.
|
public NormalizedEvaluation(org.jamesframework.core.problems.objectives.evaluations.Evaluation eval, double min, double max)
eval
- original, unnormalized evaluationmin
- lower bound of normalization intervalmax
- upper bound of normalization intervalpublic double getValue()
getValue
in interface org.jamesframework.core.problems.objectives.evaluations.Evaluation
public org.jamesframework.core.problems.objectives.evaluations.Evaluation getUnnormalizedEvaluation()
Copyright © 2016. All rights reserved.