public class FunctionCount extends FunctionLearn
config, mathCompare, valueType
Constructor and Description |
---|
FunctionCount()
Create a new instance of FunctionCount.
|
FunctionCount(java.lang.String thisValueType)
Create a new instance of FunctionCount.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double value1,
double value2)
Return a value based on the function evaluation.
|
ReplySet |
evaluate(MetricDataset dataset)
Return a value based on the function evaluation.
|
protected void |
initialise()
Initialise the function values, setting the config parameters or other.
|
Function |
newInstance()
Create and return a new instance of the function, initialised with this function's
value type
valueType and mathOperation evaluator mathCompare . |
evaluateSingle
checkValueType, createFunction, createFunction, createFunction, getConfigParams, innerObject, isLegalNumber, setConfigParams, setEvaluator, setValueType
public FunctionCount() throws java.lang.Exception
java.lang.Exception
- any error.public FunctionCount(java.lang.String thisValueType) throws java.lang.Exception
thisValueType
- the type of object being evaluated.java.lang.Exception
- any error.protected void initialise() throws java.lang.Exception
initialise
in class Function
java.lang.Exception
- any error.public ReplySet evaluate(MetricDataset dataset) throws java.lang.Exception
evaluate
in interface FunctionDef
evaluate
in class FunctionSingle
dataset
- a dataset with the two values to add together.java.lang.Exception
- any error.public double evaluate(double value1, double value2) throws java.lang.Exception
value1
- the first value to add.value2
- the second value to add.java.lang.Exception
- any error.public Function newInstance() throws java.lang.Exception
valueType
and mathOperation evaluator mathCompare
.java.lang.Exception
- any error.