Class FieldUnivariateDerivative<S extends CalculusFieldElement<S>,T extends FieldUnivariateDerivative<S,T>>
- java.lang.Object
-
- org.hipparchus.analysis.differentiation.FieldUnivariateDerivative<S,T>
-
- Type Parameters:
S
- the type of the field elementsT
- the type of the function derivative
- All Implemented Interfaces:
FieldDerivative<S,T>
,CalculusFieldElement<T>
,FieldElement<T>
- Direct Known Subclasses:
FieldUnivariateDerivative1
,FieldUnivariateDerivative2
public abstract class FieldUnivariateDerivative<S extends CalculusFieldElement<S>,T extends FieldUnivariateDerivative<S,T>> extends Object implements FieldDerivative<S,T>
Abstract class representing both the value and the differentials of a function.- Since:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description FieldUnivariateDerivative()
Empty constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract S
getDerivative(int n)
Get a derivative from the univariate derivative.int
getFreeParameters()
Get the number of free parameters.S
getPartialDerivative(int... orders)
Get a partial derivative.abstract FieldDerivativeStructure<S>
toDerivativeStructure()
Convert the instance to aDerivativeStructure
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hipparchus.CalculusFieldElement
abs, acos, acosh, add, asin, asinh, atan, atan2, atanh, cbrt, ceil, copySign, copySign, cos, cosh, divide, exp, expm1, floor, getExponent, getPi, hypot, isFinite, isInfinite, isNaN, linearCombination, linearCombination, linearCombination, linearCombination, linearCombination, linearCombination, linearCombination, linearCombination, log, log10, log1p, multiply, newInstance, norm, pow, pow, pow, reciprocal, remainder, remainder, rint, rootN, round, scalb, sign, sin, sinCos, sinh, sinhCosh, sqrt, subtract, tan, tanh, toDegrees, toRadians, ulp
-
Methods inherited from interface org.hipparchus.analysis.differentiation.FieldDerivative
getOrder, getValue
-
-
-
-
Method Detail
-
getFreeParameters
public int getFreeParameters()
Get the number of free parameters.- Specified by:
getFreeParameters
in interfaceFieldDerivative<S extends CalculusFieldElement<S>,T extends FieldUnivariateDerivative<S,T>>
- Returns:
- number of free parameters
-
getPartialDerivative
public S getPartialDerivative(int... orders) throws MathIllegalArgumentException
Get a partial derivative.- Specified by:
getPartialDerivative
in interfaceFieldDerivative<S extends CalculusFieldElement<S>,T extends FieldUnivariateDerivative<S,T>>
- Parameters:
orders
- derivation orders with respect to each variable (if all orders are 0, the value is returned)- Returns:
- partial derivative
- Throws:
MathIllegalArgumentException
- if the numbers of variables does not match the instance- See Also:
FieldDerivative.getValue()
-
getDerivative
public abstract S getDerivative(int n) throws MathIllegalArgumentException
Get a derivative from the univariate derivative.- Parameters:
n
- derivation order (must be between 0 andFieldDerivative.getOrder()
, both inclusive)- Returns:
- nth derivative
- Throws:
MathIllegalArgumentException
- if n is either negative or strictly larger thanFieldDerivative.getOrder()
-
toDerivativeStructure
public abstract FieldDerivativeStructure<S> toDerivativeStructure()
Convert the instance to aDerivativeStructure
.- Returns:
- derivative structure with same value and derivative as the instance
-
-