Class QuasiSigmoidDecayFunction
java.lang.Object
org.apache.commons.math3.ml.neuralnet.sofm.util.QuasiSigmoidDecayFunction
Decay function whose shape is similar to a sigmoid.
Class is immutable.
Class is immutable.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionQuasiSigmoidDecayFunction
(double initValue, double slope, long numCall) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptiondouble
value
(long numCall) Computes the value of the learning factor.
-
Constructor Details
-
QuasiSigmoidDecayFunction
public QuasiSigmoidDecayFunction(double initValue, double slope, long numCall) Creates an instance. The functionf
will have the following properties:f(0) = initValue
numCall
is the inflexion pointslope = f'(numCall)
- Parameters:
initValue
- Initial value, i.e.value(0)
.slope
- Value of the function derivative atnumCall
.numCall
- Inflexion point.- Throws:
NotStrictlyPositiveException
- ifinitValue <= 0
.NumberIsTooLargeException
- ifslope >= 0
.NotStrictlyPositiveException
- ifnumCall <= 0
.
-
-
Method Details
-
value
public double value(long numCall) Computes the value of the learning factor.- Parameters:
numCall
- Current step of the training task.- Returns:
- the value of the function at
numCall
.
-