public final class Sigmoid extends Object implements ParametrizedFunction, Serializable

is a constant defined by user. The default
value is equal to 2.0.| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_PARAM |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Two functions are equal if they return the same values for all possible
arguments.
|
double |
getDeriv(double arg)
Returns a value of the first derivative of the function for the given
argument.
|
double |
getParam()
Returns the parameter of this function.
|
double |
getValue(double arg)
Returns a value of the function for the given argument.
|
boolean |
hasDeriv()
Returns
true if the function is differentiable. |
int |
hashCode() |
void |
setParam(double param)
Sets the parameter of this function.
|
String |
toString() |
public static final double DEFAULT_PARAM
public double getValue(double arg)
Functionpublic double getDeriv(double arg)
Functionpublic boolean hasDeriv()
Functiontrue if the function is differentiable.public double getParam()
ParametrizedFunctiongetParam in interface ParametrizedFunctionpublic void setParam(double param)
ParametrizedFunctionsetParam in interface ParametrizedFunctionparam - the parameter valuepublic boolean equals(Object obj)
Copyright © 2012. All Rights Reserved.