public class Sigmoid extends Object implements UnivariateDifferentiableFunction
Modifier and Type | Class and 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 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 |
---|---|
double |
value(double x)
Compute the value of the function.
|
<T extends Derivative<T>> |
value(T t)
Compute the value for the 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 <T extends Derivative<T>> T value(T t) throws MathIllegalArgumentException
value
in interface UnivariateDifferentiableFunction
T
- the type of the field elementst
- the point for which the function value should be computedMathIllegalArgumentException
- if x
does not
satisfy the function's constraints (argument out of bound, or unsupported
derivative order for example)Copyright © 2016-2021 CS GROUP. All rights reserved.