public abstract class AlgorithmCompareList extends AlgorithmCompare
| Modifier and Type | Field and Description |
|---|---|
protected int |
bestCluster
Index position of the best or closest dataset to this one, for a list of clusters
|
protected int[] |
bestIndexes
Index positions of the currently best values from this dataset and the best one compared with.
|
protected MetricDataset |
dataset
The dataset to compare with
|
bestEval, evalMetricconfig, mathCompare, valueType| Constructor and Description |
|---|
AlgorithmCompareList()
Create a new instance of AlgorithmCompareList.
|
AlgorithmCompareList(java.lang.String thisValueType)
Create a new instance of AlgorithmCompareList.
|
AlgorithmCompareList(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig)
Create a new instance of AlgorithmCompareList.
|
AlgorithmCompareList(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig,
FunctionMetric thisEvalMetric)
Create a new empty instance of AlgorithmCompareList.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Double |
distance(MetricDataset datasetWith)
Measure the distance between the dataset parameter and the dataset of this algorithm.
|
int |
getBestCluster()
Get the index of the best dataset from a list compared with.
|
int[] |
getBestIndexes()
Get the indexes of the closest comparisons between this dataset and the best one.
|
MetricDataset |
getDataset()
Get the dataset this algorithm uses as the reference point.
|
protected void |
initialise()
Initialise the function values, setting the config parameters or other.
|
void |
resetValues()
Reset the evaluation results for a new test scenario.
|
void |
setDataset(MetricDataset thisDataset)
Set the dataset this algorithm uses as the reference point.
|
getBestEvaluationcheckValueType, createFunction, createFunction, createFunction, evaluate, getConfigParams, innerObject, isLegalNumber, setConfigParams, setEvaluator, setValueTypeprotected int bestCluster
protected int[] bestIndexes
protected MetricDataset dataset
public AlgorithmCompareList()
throws java.lang.Exception
java.lang.Exception - any error.public AlgorithmCompareList(java.lang.String thisValueType)
throws java.lang.Exception
thisValueType - the type of object being evaluated.java.lang.Exception - any error.public AlgorithmCompareList(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 AlgorithmCompareList(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()
initialise in class AlgorithmComparepublic void resetValues()
resetValues in class AlgorithmCompareprotected java.lang.Double distance(MetricDataset datasetWith) throws java.lang.Exception
datasetWith - the dataset to compare with, as specified above.java.lang.Exception - any error.public void setDataset(MetricDataset thisDataset)
thisDataset - the dataset to compare with.public MetricDataset getDataset()
public int getBestCluster()
public int[] getBestIndexes()