public abstract class AlgorithmCompare extends Function
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
bestEval
The best resulting evaluation.
|
protected FunctionMetric |
evalMetric
The metric to calculate the distance with.
|
config, mathCompare, valueType| Constructor and Description |
|---|
AlgorithmCompare()
Create a new instance of AlgorithmCompare.
|
AlgorithmCompare(java.lang.String thisValueType)
Create a new instance of AlgorithmCompare.
|
AlgorithmCompare(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig)
Create a new instance of AlgorithmCompare.
|
AlgorithmCompare(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig,
FunctionMetric thisEvalMetric)
Create a new empty instance of AlgorithmCompare.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getBestEvaluation()
Get the current best evaluation.
|
protected void |
initialise()
Initialise the function values, setting the config parameters or other.
|
void |
resetValues()
Reset the evaluation results for a new test scenario.
|
checkValueType, createFunction, createFunction, createFunction, evaluate, getConfigParams, innerObject, isLegalNumber, setConfigParams, setEvaluator, setValueTypeprotected java.lang.Object bestEval
protected FunctionMetric evalMetric
public AlgorithmCompare()
throws java.lang.Exception
java.lang.Exception - any error.public AlgorithmCompare(java.lang.String thisValueType)
throws java.lang.Exception
thisValueType - the type of object being evaluated.java.lang.Exception - any error.public AlgorithmCompare(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig)
throws java.lang.Exception
thisValueType - the type of object being evaluated. Can be null if set later or not used.thisConfig - list of initialisation function-specific parameters.java.lang.Exception - any error.public AlgorithmCompare(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig,
FunctionMetric thisEvalMetric)
throws java.lang.Exception
thisValueType - the type of object being evaluated. Can be null if set later or not used.thisConfig - list of initialisation function-specific parameters.thisEvalMetric - the distance function.java.lang.Exception - any error.protected void initialise()
throws java.lang.Exception
initialise in class Functionjava.lang.Exception - any error.public void resetValues()
public java.lang.Object getBestEvaluation()