public class DifferentialVariable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DifferentialVariable |
ONE
representation of the constant one
|
static DifferentialVariable |
ZERO
representation of the constant zero
|
Constructor and Description |
---|
DifferentialVariable(double value,
int offset,
double... derivatives)
Primary Constructor
|
Modifier and Type | Method and Description |
---|---|
DifferentialVariable |
abs()
get the absolute value of this variable
|
DifferentialVariable |
acos()
get the arc cosine of this variable
|
static DifferentialVariable |
add(DifferentialVariable... addends)
perform the addition operation between two variables
|
static DifferentialVariable |
add(DifferentialVariable variable,
double value)
perform the addition operation between a variable and a scalar value
|
static DifferentialVariable |
add(double value,
DifferentialVariable variable)
perform the addition operation between a variable and a scalar value
|
DifferentialVariable |
asin()
get the arc sine of this variable
|
DifferentialVariable |
atan()
get the arc tangent of this variable
|
DifferentialVariable |
cos()
get the cosine of this variable
|
DifferentialVariable |
cosh()
get the hyperbolic cosine of this variable
|
static DifferentialVariable |
divide(DifferentialVariable dividend,
DifferentialVariable divisor)
divide the dividend by the divisor
|
static DifferentialVariable |
divide(DifferentialVariable variable,
double value)
divide the variable by the scalar value
|
static DifferentialVariable |
divide(double value,
DifferentialVariable variable)
divide the scalar value by the variable
|
DifferentialVariable |
exp()
get the exponential (base e) of this variable
|
double |
getDerivative(int index)
get the derivative for the independent variable at the specified index
|
static DifferentialVariable |
getInstance(double value,
double... derivatives)
Constructor with zero offset
|
double |
getValue()
get the value
|
DifferentialVariable |
log()
get the natural logarithm (base e) of this variable
|
DifferentialVariable |
minus(DifferentialVariable subtrahend)
subtract the specified subtrahend from this variable
|
DifferentialVariable |
minus(double subtrahend)
subtract the specified subtrahend from this variable
|
static DifferentialVariable |
multiply(DifferentialVariable... multiplicands)
multiply the variables
|
static DifferentialVariable |
multiply(DifferentialVariable variable,
double value)
perform the multiplication operation between a variable and a scalar value
|
static DifferentialVariable |
multiply(double value,
DifferentialVariable variable)
perform the multiplication operation between a variable and a scalar value
|
DifferentialVariable |
negate()
negate the variable
|
static DifferentialVariable |
newConstant(double value)
get a constant value
|
DifferentialVariable |
over(DifferentialVariable divisor)
divide this variable by the specified divisor
|
DifferentialVariable |
over(double divisor)
divide this variable by the specified divisor
|
DifferentialVariable |
plus(DifferentialVariable addend)
add this variable to the specified addend
|
DifferentialVariable |
plus(double addend)
add this variable to the specified addend
|
DifferentialVariable |
pow(double power)
raise this variable to the specified power
|
DifferentialVariable |
reciprocal()
calculate and return the reciprocol of this variable
|
DifferentialVariable |
sin()
get the sine of this variable
|
DifferentialVariable |
sinh()
get the hyperbolic sine of this variable
|
DifferentialVariable |
sqrt()
get the square root of this variable
|
static DifferentialVariable |
subtract(DifferentialVariable minuend,
DifferentialVariable subtrahend)
subtract the subtrahend variable from the minuend variable
|
static DifferentialVariable |
subtract(DifferentialVariable variable,
double subtrahend)
subtract the scalar value from the variable
|
static DifferentialVariable |
subtract(double value,
DifferentialVariable variable)
subtract the variable from the scalar value
|
DifferentialVariable |
tan()
get the tangent of this variable
|
DifferentialVariable |
tanh()
get the hyperbolic tangent of this variable
|
DifferentialVariable |
times(DifferentialVariable multiplicand)
multiply this variable by the specified multiplicand
|
DifferentialVariable |
times(double multiplicand)
multiply this variable by the specified multiplicand
|
double |
varianceWithSignalVariance(double commonVariance)
calculate the variance for this variable given a common variance for each independent variable
|
double |
varianceWithSignalVariances(double... variances)
calculate the variance for this variable given variances for all independent variables
|
double |
varianceWithSignalVariances(int offset,
double... variances)
calculate the variance for this variable given the independent variables starting at the specified offset among all independent variables
|
public static final DifferentialVariable ZERO
public static final DifferentialVariable ONE
public DifferentialVariable(double value, int offset, double... derivatives)
value
- the value of the variableoffset
- offset of this differential's first independent variable relative to all independent variablesderivatives
- array of derivatives beginning with this differential's first independent variablepublic static DifferentialVariable getInstance(double value, double... derivatives)
value
- the value of the variablederivatives
- array of derivatives beginning with the first independent variablepublic static DifferentialVariable newConstant(double value)
public double getValue()
public double getDerivative(int index)
public double varianceWithSignalVariance(double commonVariance)
public double varianceWithSignalVariances(double... variances)
public double varianceWithSignalVariances(int offset, double... variances)
public static DifferentialVariable add(DifferentialVariable variable, double value)
public static DifferentialVariable add(double value, DifferentialVariable variable)
public static DifferentialVariable add(DifferentialVariable... addends)
public static DifferentialVariable subtract(DifferentialVariable variable, double subtrahend)
public static DifferentialVariable subtract(double value, DifferentialVariable variable)
public static DifferentialVariable subtract(DifferentialVariable minuend, DifferentialVariable subtrahend)
public static DifferentialVariable multiply(DifferentialVariable variable, double value)
public static DifferentialVariable multiply(double value, DifferentialVariable variable)
public static DifferentialVariable multiply(DifferentialVariable... multiplicands)
public static DifferentialVariable divide(DifferentialVariable variable, double value)
public static DifferentialVariable divide(double value, DifferentialVariable variable)
public static DifferentialVariable divide(DifferentialVariable dividend, DifferentialVariable divisor)
public DifferentialVariable negate()
public DifferentialVariable reciprocal()
public DifferentialVariable plus(double addend)
public DifferentialVariable plus(DifferentialVariable addend)
public DifferentialVariable minus(double subtrahend)
public DifferentialVariable minus(DifferentialVariable subtrahend)
public DifferentialVariable times(double multiplicand)
public DifferentialVariable times(DifferentialVariable multiplicand)
public DifferentialVariable over(double divisor)
public DifferentialVariable over(DifferentialVariable divisor)
public final DifferentialVariable pow(double power)
public final DifferentialVariable sqrt()
public final DifferentialVariable abs()
public final DifferentialVariable log()
public final DifferentialVariable exp()
public final DifferentialVariable sin()
public final DifferentialVariable cos()
public final DifferentialVariable tan()
public final DifferentialVariable asin()
public final DifferentialVariable acos()
public final DifferentialVariable atan()
public final DifferentialVariable sinh()
public final DifferentialVariable cosh()
public final DifferentialVariable tanh()