Class ExponentialDecayFunction
java.lang.Object
org.apache.commons.math3.ml.neuralnet.sofm.util.ExponentialDecayFunction
Exponential decay function:
Class is immutable.
a e-x / b,
where x is the (integer) independent variable.
Class is immutable.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionExponentialDecayFunction(double initValue, double valueAtNumCall, long numCall) Creates an instance. -
Method Summary
-
Constructor Details
-
ExponentialDecayFunction
public ExponentialDecayFunction(double initValue, double valueAtNumCall, long numCall) Creates an instance. It will be such thata = initValueb = -numCall / ln(valueAtNumCall / initValue)
- Parameters:
initValue- Initial value, i.e.value(0).valueAtNumCall- Value of the function atnumCall.numCall- Argument for which the function returnsvalueAtNumCall.- Throws:
NotStrictlyPositiveException- ifinitValue <= 0.NotStrictlyPositiveException- ifvalueAtNumCall <= 0.NumberIsTooLargeException- ifvalueAtNumCall >= initValue.NotStrictlyPositiveException- ifnumCall <= 0.
-
-
Method Details
-
value
public double value(long numCall) Computesa e-numCall / b.- Parameters:
numCall- Current step of the training task.- Returns:
- the value of the function at
numCall.
-