public final class TrigonometricPolynomialPrimitive extends Object implements UnivariateDifferentiableFunction, Serializable
PolynomialFunction
:
P(x) = a0 + a1 x + sum( bk cos(kt) + ck sin(kt) )
Constructor and Description |
---|
TrigonometricPolynomialPrimitive(PolynomialFunction linearPolynomial,
TrigonometricPolynomialFunction trigonometricPolynomial)
Constructor for the
TrigonometricPolynomialPrimitive class |
public TrigonometricPolynomialPrimitive(PolynomialFunction linearPolynomial, TrigonometricPolynomialFunction trigonometricPolynomial)
TrigonometricPolynomialPrimitive
classlinearPolynomial
- linear parttrigonometricPolynomial
- trigonometric partpublic TrigonometricPolynomialPrimitive add(TrigonometricPolynomialPrimitive poly)
TrigonometricPolynomialPrimitive
poly
- to addTrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive add(PolynomialFunction poly)
PolynomialFunction
poly
- to addTrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive add(TrigonometricPolynomialFunction poly)
poly
- to addTrigonometricPolynomialPrimitive
public UnivariateFunction derivative()
UnivariateFunction
public UnivariateFunction derivative(int n)
n
- order of derivativeUnivariateFunction
protected static double evaluate(TrigonometricPolynomialPrimitive polynomial, double x)
polynomial
- to evaluatex
- abscissapublic PolynomialFunction getLinearPolynomial()
PolynomialFunction
public TrigonometricPolynomialFunction getTrigonometricPolynomial()
TrigonometricPolynomialFunction
public TrigonometricPolynomialPrimitive negate()
public TrigonometricPolynomialPrimitive polynomialDerivative()
TrigonometricPolynomialPrimitive
protected static TrigonometricPolynomialPrimitive polynomialDerivative(TrigonometricPolynomialPrimitive poly)
poly
- polynomial to differentiateTrigonometricPolynomialFunction
public TrigonometricPolynomialPrimitive polynomialDerivative(int n)
n
- order of derivative (n > 0)TrigonometricPolynomialFunction
public TrigonometricPolynomialPrimitive scalarAdd(double scalar)
TrigonometricPolynomialPrimitive
scalar
- for additionTrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive scalarDivide(double scalar)
scalar
- to divide polynomial bypublic TrigonometricPolynomialPrimitive scalarMultiply(double scalar)
TrigonometricPolynomialPrimitive
by a scalarscalar
- for multiplicationTrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive scalarSubtract(double scalar)
scalar
- to subtractTrigonometricPolynomialFunction
public TrigonometricPolynomialPrimitive subtract(TrigonometricPolynomialPrimitive poly)
TrigonometricPolynomialPrimitive
poly
- to SubtractTrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive subtract(PolynomialFunction poly)
PolynomialFunction
poly
- to SubtractTrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive subtract(TrigonometricPolynomialFunction poly)
TrigonometricPolynomialFunction
poly
- to SubtractTrigonometricPolynomialPrimitive
public String toString()
public double value(double x)
value
in interface UnivariateFunction
x
- abscissapublic double value(int n, double x)
n
- order of derivativex
- abscissapublic DerivativeStructure value(DerivativeStructure t)
UnivariateDifferentiableFunction
classes compute both the value and the first derivative of the function.
value
in interface UnivariateDifferentiableFunction
t
- function input valueCopyright © 2019 CNES. All rights reserved.