Deprecated
as a consequence of DifferentiableUnivariateFunction being deprecated. See corresponding docs for further information.
logit function.
A more flexible version, the generalised logistic, is implemented
by the Logistic class.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Sigmoid.
Parametric function where the input array contains the parameters of
the
|
| Modifier and Type | Field and Description |
|---|---|
| private final double | hi
Higher asymptote. |
| private final double | lo
Lower asymptote. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public UnivariateFunction | derivative()
Implements org.
Deprecated
as of 3.1, replaced by
value(DerivativeStructure)
Returns the derivative of the function |
| public double | value(double
Point at which the function value should be computed. x)Implements org. Compute the value of the function. |
| private static double | Returns: the value of the sigmoid function atx.Value at which to compute the sigmoid. x, double Lower asymptote. lo, double Higher asymptote. hi)
|
| public DerivativeStructure | value(final DerivativeStructure
function input value t)Implements org. Simple mathematical function. |
| hi | back to summary |
|---|---|
| private final double hi Higher asymptote. | |
| lo | back to summary |
|---|---|
| private final double lo Lower asymptote. | |
| Sigmoid | back to summary |
|---|---|
| public Sigmoid() Usual sigmoid function, where the lower asymptote is 0 and the higher asymptote is 1. | |
| Sigmoid | back to summary |
|---|---|
| public Sigmoid(double lo, double hi) Sigmoid function.
| |
| derivative | back to summary |
|---|---|
| public UnivariateFunction derivative() Implements org. Doc from org. Deprecated as of 3.1, replaced by Returns the derivative of the function
| |
| value | back to summary |
|---|---|
| public double value(double x) Implements org. Doc from org. Compute the value of the function.
| |
| value | back to summary |
|---|---|
private static double value(double x, double lo, double hi)
| |
| value | back to summary |
|---|---|
| public DerivativeStructure value(final DerivativeStructure t) throws DimensionMismatchException Implements org. Doc from org. Simple mathematical function.
| |
sigmoid function, ordered
as follows:
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public double[] | Returns: the gradient vector atx.Value at which the gradient must be computed. x, double... Values for lower asymptote and higher asymptote. param)Implements org. Computes the value of the gradient at |
| private void | validateParameters(double[]
Values for lower and higher asymptotes. param)Validates parameters to ensure they are appropriate for the evaluation of
the |
| public double | Returns: the value of the function.Value for which the function must be computed. x, double... Values of lower asymptote and higher asymptote. param)Implements org. Computes the value of the sigmoid at |
| Parametric | back to summary |
|---|---|
| public Parametric() | |
| gradient | back to summary |
|---|---|
| public double[] gradient(double x, double... param) throws NullArgumentException, DimensionMismatchException Implements org. Computes the value of the gradient at
| |
| validateParameters | back to summary |
|---|---|
| private void validateParameters(double[] param) throws NullArgumentException, DimensionMismatchException Validates parameters to ensure they are appropriate for the evaluation of
the
| |
| value | back to summary |
|---|---|
| public double value(double x, double... param) throws NullArgumentException, DimensionMismatchException Implements org. Computes the value of the sigmoid at
| |