public final class FastSigmoid extends Object implements ParametrizedFunction, Serializable
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)
Function
public double getDeriv(double arg)
Function
public boolean hasDeriv()
Function
true
if the function is differentiable.public double getParam()
getParam
in interface ParametrizedFunction
public void setParam(double param)
setParam
in interface ParametrizedFunction
param
- betapublic boolean equals(Object obj)
Copyright © 2012. All Rights Reserved.