public class Logit extends java.lang.Object implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction
Modifier and Type | Class and Description |
---|---|
static class |
Logit.Parametric
Parametric function where the input array contains the parameters of
the logit function, ordered as follows:
Lower bound
Higher bound
|
Modifier and Type | Field and Description |
---|---|
private double |
hi
Higher bound.
|
private double |
lo
Lower bound.
|
Constructor and Description |
---|
Logit()
Usual logit function, where the lower bound is 0 and the higher
bound is 1.
|
Logit(double lo,
double hi)
Logit function.
|
Modifier and Type | Method and Description |
---|---|
UnivariateFunction |
derivative()
Deprecated.
as of 3.1, replaced by
value(DerivativeStructure) |
DerivativeStructure |
value(DerivativeStructure t)
Simple mathematical function.
|
double |
value(double x)
Compute the value of the function.
|
private static double |
value(double x,
double lo,
double hi) |
public Logit()
public Logit(double lo, double hi)
lo
- Lower bound of the function domain.hi
- Higher bound of the function domain.public double value(double x) throws OutOfRangeException
value
in interface UnivariateFunction
x
- Point at which the function value should be computed.OutOfRangeException
@Deprecated public UnivariateFunction derivative()
value(DerivativeStructure)
derivative
in interface DifferentiableUnivariateFunction
private static double value(double x, double lo, double hi) throws OutOfRangeException
x
- Value at which to compute the logit.lo
- Lower bound.hi
- Higher bound.x
.OutOfRangeException
- if x < lo
or x > hi
.public DerivativeStructure value(DerivativeStructure t) throws OutOfRangeException
UnivariateDifferentiableFunction
classes compute both the
value and the first derivative of the function.
value
in interface UnivariateDifferentiableFunction
t
- function input valueOutOfRangeException
- if parameter is outside of function domainCopyright (c) 2003-2013 Apache Software Foundation