UnivariateDifferentiableFunction
, UnivariateFunction
public class Sigmoid extends Object implements UnivariateDifferentiableFunction
Modifier and Type | Class | Description |
---|---|---|
static class |
Sigmoid.Parametric |
Parametric function where the input array contains the parameters of
the
sigmoid function , ordered
as follows:
Lower asymptote
Higher asymptote
|
Constructor | 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 | Description |
---|---|---|
double |
value(double x) |
Compute the value of the function.
|
DerivativeStructure |
value(DerivativeStructure t) |
Simple mathematical function.
|
public Sigmoid()
public Sigmoid(double lo, double hi)
lo
- Lower asymptote.hi
- Higher asymptote.public double value(double x)
value
in interface UnivariateFunction
x
- Point at which the function value should be computed.public DerivativeStructure value(DerivativeStructure t) throws MathIllegalArgumentException
UnivariateDifferentiableFunction
classes compute both the
value and the first derivative of the function.
value
in interface UnivariateDifferentiableFunction
t
- function input valueMathIllegalArgumentException
- if t is inconsistent with the
function's free parameters or orderCopyright © 2016–2018 Hipparchus.org. All rights reserved.