Class QuasiSigmoidDecayFunction
- java.lang.Object
-
- org.apache.commons.math3.ml.neuralnet.sofm.util.QuasiSigmoidDecayFunction
-
public class QuasiSigmoidDecayFunction extends java.lang.Object
Decay function whose shape is similar to a sigmoid.
Class is immutable.- Since:
- 3.3
-
-
Field Summary
Fields Modifier and Type Field Description private double
scale
Seevalue(long)
.private Logistic
sigmoid
Sigmoid.
-
Constructor Summary
Constructors Constructor Description QuasiSigmoidDecayFunction(double initValue, double slope, long numCall)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
value(long numCall)
Computes the value of the learning factor.
-
-
-
Field Detail
-
sigmoid
private final Logistic sigmoid
Sigmoid.
-
scale
private final double scale
Seevalue(long)
.
-
-
Constructor Detail
-
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
.
-
-