|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rubecula.darwin.foundation.Function_ com.rubecula.darwin.domain.fitness.FitnessFunction_
public abstract class FitnessFunction_
Field Summary |
---|
Fields inherited from class com.rubecula.darwin.foundation.Function_ |
---|
evaluator, LOG |
Fields inherited from interface com.rubecula.darwin.domain.helper.FitnessFunction |
---|
PREFIX_VAR_RPN, VAR_SHAPE_FACTOR, VAR_TARGET, VAR_VALUE |
Constructor Summary | |
---|---|
protected |
FitnessFunction_()
TEST |
protected |
FitnessFunction_(com.rubecula.jexpression.Evaluator evaluator)
|
Method Summary | |
---|---|
double |
getFitness(double value,
double target,
double factor)
Get the fitness based on the value (usually from one of the
traits of a phenotype), the target (usually a value from an
eco factor in the environment), and the shape factor
(usually determined by the application). |
Methods inherited from class com.rubecula.darwin.foundation.Function_ |
---|
addListener, addSymbol, equals, evaluate, getErrorInfo, getEvaluator, getExpression, getExpressionMap, getExpressionTerms, getValue, hashCode, isDifferent, isMutable, normalDistributionDensityFunction, normalDistributionDensityFunctionScaled, onFunctionChange, removeVariable, reset, setEvaluator, setExpression, setExpression, standardFunction, standardFunctionTokens |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.tostring0.Identifiable |
---|
getIdentifier |
Constructor Detail |
---|
protected FitnessFunction_()
protected FitnessFunction_(com.rubecula.jexpression.Evaluator evaluator)
evaluator
- the evaluator (expression engine) used to evaluate the
expression.Method Detail |
---|
public double getFitness(double value, double target, double factor) throws FitnessException
value
(usually from one of the
traits of a phenotype), the target
(usually a value from an
eco factor in the environment), and the shape factor
(usually determined by the application).
getFitness
in interface FitnessFunction
value
- the variate value.target
- usually the mean value of a distribution, if such a concept is
meaningful.factor
- usually the standard deviation of a distribution, if such a
concept is meaningful.
Evaluator
or
the value returned from Function_.evaluate(Object...)
with
parameters: VAR_VALUE, value, VAR_TARGET, target,
VAR_SHAPE_FACTOR, factor.
FitnessException
FitnessFunction.getFitness(double,
double, double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |