public final class FastSigmoid extends Object implements ParametrizedFunction, Serializable

is a constant defined by user. The default
value is equal to 2.0.
exp(x) function.
For more information, see
this paper.| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_PARAM |
| Constructor and Description |
|---|
FastSigmoid() |
FastSigmoid(double 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 beta parameter
|
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 beta parameter.
|
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()
getParam in interface ParametrizedFunctionpublic void setParam(double param)
setParam in interface ParametrizedFunctionparam - betapublic boolean equals(Object obj)
Copyright © 2012. All Rights Reserved.