public class AbstractionAndPrecisionFitnessFunction extends Object implements EvaluableExpressionFitnessFunction
Constructor and Description |
---|
AbstractionAndPrecisionFitnessFunction() |
Modifier and Type | Method and Description |
---|---|
double |
gradeFor(ExternalCallParameter parameter,
EvaluableExpression expression,
EvaluableExpressionFitnessFunctionBlackboardView blackboard)
Judges how well
expression fits to describe the measurement results of
parameter . |
double |
gradeFor(ResourceDemandingInternalAction rdia,
EvaluableExpression expression,
EvaluableExpressionFitnessFunctionBlackboardView blackboard)
Judges how well
expression fits to describe the measurement results of
rdia . |
double |
gradeFor(SeffBranch branch,
EvaluableExpression expression,
EvaluableExpressionFitnessFunctionBlackboardView blackboard)
Judges how well
expression fits to describe the measurement results of
branch . |
double |
gradeFor(SeffLoop loop,
EvaluableExpression expression,
EvaluableExpressionFitnessFunctionBlackboardView blackboard)
Judges how well
expression fits to describe the measurement results of
loop . |
public AbstractionAndPrecisionFitnessFunction()
public double gradeFor(ResourceDemandingInternalAction rdia, EvaluableExpression expression, EvaluableExpressionFitnessFunctionBlackboardView blackboard)
EvaluableExpressionFitnessFunction
expression
fits to describe the measurement results of
rdia
.gradeFor
in interface EvaluableExpressionFitnessFunction
rdia
- A resource demanding internal action.expression
- A expression proposed to describe rdia
’s measurement
results.blackboard
- Beagle’s blackboard instance.expression
fits to describe the
measurement results of rdia
. Will be a value between 0 and
Double.MAX_VALUE
. The lower the value, the better the fitness.public double gradeFor(SeffBranch branch, EvaluableExpression expression, EvaluableExpressionFitnessFunctionBlackboardView blackboard)
EvaluableExpressionFitnessFunction
expression
fits to describe the measurement results of
branch
.gradeFor
in interface EvaluableExpressionFitnessFunction
branch
- A SEFF Branch.expression
- A expression proposed to describe branch
’s measurement
results.blackboard
- Beagle’s blackboard instance.expression
fits to describe the
measurement results of branch
. Will be a value between 0 and
Double.MAX_VALUE
. The lower the value, the better the fitness.public double gradeFor(SeffLoop loop, EvaluableExpression expression, EvaluableExpressionFitnessFunctionBlackboardView blackboard)
EvaluableExpressionFitnessFunction
expression
fits to describe the measurement results of
loop
.gradeFor
in interface EvaluableExpressionFitnessFunction
loop
- A SEFF Loop.expression
- A expression proposed to describe loop
’s measurement
results.blackboard
- Beagle’s blackboard instance.expression
fits to describe the
measurement results of loop
. Will be a value between 0 and
Double.MAX_VALUE
. The lower the value, the better the fitness.public double gradeFor(ExternalCallParameter parameter, EvaluableExpression expression, EvaluableExpressionFitnessFunctionBlackboardView blackboard)
EvaluableExpressionFitnessFunction
expression
fits to describe the measurement results of
parameter
.gradeFor
in interface EvaluableExpressionFitnessFunction
parameter
- An external call parameter.expression
- A expression proposed to describe parameter
’s measurement
results.blackboard
- Beagle’s blackboard instance.expression
fits to describe the
measurement results of parameter
. Will be a value between 0 and
Double.MAX_VALUE
. The lower the value, the better the fitness.