public class FunctionHyperbolicFactor extends FunctionLearn
c /(c2 + k).
To use it, you need to pass the value and also the AiHeuristicConst.HFC
and HFC2 parameter constants, of type double. The value itself should
also be a basic number type. This has been added as part of the som package, with the
intention that it can be used more generally.config, mathCompare, valueType| Constructor and Description |
|---|
FunctionHyperbolicFactor()
Create a new instance of FunctionHyperbolicFactor.
|
FunctionHyperbolicFactor(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig)
Create a new instance of FunctionHyperbolicFactor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(double value,
double hc,
double hc2)
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. |
evaluateSinglecheckValueType, createFunction, createFunction, createFunction, getConfigParams, innerObject, isLegalNumber, setConfigParams, setEvaluator, setValueTypepublic FunctionHyperbolicFactor()
throws java.lang.Exception
java.lang.Exception - any error.public FunctionHyperbolicFactor(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig)
throws java.lang.Exception
thisValueType - the type of object being evaluated.thisConfig - list of initialisation function-specific parameters.java.lang.Exception - any error.protected void initialise()
throws java.lang.Exception
initialise in class Functionjava.lang.Exception - any error.public ReplySet evaluate(MetricDataset dataset) throws java.lang.Exception
evaluate in interface FunctionDefevaluate in class FunctionSingledataset - a dataset with the value to evaluate.java.lang.Exception - any error.public double evaluate(double value,
double hc,
double hc2)
throws java.lang.Exception
value - the value to evaluate.hc - the first constant.hc2 - the second constant.java.lang.Exception - any error.public Function newInstance() throws java.lang.Exception
valueType and mathOperation evaluator mathCompare.java.lang.Exception - any error.