Package libai.common.functions
Class Sigmoid
- java.lang.Object
-
- libai.common.functions.Sigmoid
-
- All Implemented Interfaces:
java.io.Serializable,Function
public class Sigmoid extends java.lang.Object implements Function
Sigmoid function: f(x) = 1/(1+e^-x) The first derivate of the sigmoid function S(x) S'(x) = S(x)*(1-S(x))- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Sigmoid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleeval(double x)Function to evaluate.FunctiongetDerivate()Evaluate the first derivate of this function f'(x)
-
-
-
Method Detail
-
eval
public double eval(double x)
Description copied from interface:FunctionFunction to evaluate.
-
getDerivate
public Function getDerivate()
Description copied from interface:FunctionEvaluate the first derivate of this function f'(x)- Specified by:
getDerivatein interfaceFunction- Returns:
- a new Function object with the derivate function.
-
-