public class Sigmoid extends Object implements DifferentiableUnivariateFunction
logit
function.
A more flexible version, the generalised logistic, is implemented
by the Logistic
class.Modifier and Type | Class and Description |
---|---|
static class |
Sigmoid.Parametric
Parametric function where the input array contains the parameters of
the logit function, ordered as follows:
Lower asymptote
Higher asymptote
|
Constructor and Description |
---|
Sigmoid()
Usual sigmoid function, where the lower asymptote is 0 and the higher
asymptote is 1.
|
Sigmoid(double lo,
double hi)
Sigmoid function.
|
Modifier and Type | Method and Description |
---|---|
UnivariateFunction |
derivative()
Returns the derivative of the function
|
double |
value(double x)
Compute the value of the function.
|
public Sigmoid()
public Sigmoid(double lo, double hi)
lo
- Lower asymptote.hi
- Higher asymptote.public UnivariateFunction derivative()
derivative
in interface DifferentiableUnivariateFunction
public double value(double x)
value
in interface UnivariateFunction
x
- Point at which the function value should be computed.Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.