|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.analysis.polynomials.TrigonometricPolynomialPrimitive
public final class TrigonometricPolynomialPrimitive
This class represents a trigonometric polynomial primitive. Such a function is defined
as being the sum of a {link TrigonometricPolynomialFunction} and a PolynomialFunction
:
P(x) = a0 + a1 x + sum( bk cos(kt) + ck sin(kt) )
Constructor Summary | |
---|---|
TrigonometricPolynomialPrimitive(PolynomialFunction linearPolynomial,
TrigonometricPolynomialFunction trigonometricPolynomial)
Constructor for the TrigonometricPolynomialPrimitive class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TrigonometricPolynomialPrimitive(PolynomialFunction linearPolynomial, TrigonometricPolynomialFunction trigonometricPolynomial)
TrigonometricPolynomialPrimitive
class
linearPolynomial
- linear parttrigonometricPolynomial
- trigonometric partMethod Detail |
---|
public TrigonometricPolynomialPrimitive add(TrigonometricPolynomialPrimitive poly)
TrigonometricPolynomialPrimitive
poly
- to add
TrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive add(PolynomialFunction poly)
PolynomialFunction
poly
- to add
TrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive add(TrigonometricPolynomialFunction poly)
TrigonometricPolynomialFunction
poly
- to add
TrigonometricPolynomialPrimitive
public UnivariateFunction derivative()
UnivariateFunction
public UnivariateFunction derivative(int n)
n
- order of derivative
UnivariateFunction
protected static double evaluate(TrigonometricPolynomialPrimitive polynomial, double x)
polynomial
- to evaluatex
- abscissa
public PolynomialFunction getLinearPolynomial()
PolynomialFunction
public TrigonometricPolynomialFunction getTrigonometricPolynomial()
TrigonometricPolynomialFunction
public TrigonometricPolynomialPrimitive negate()
public TrigonometricPolynomialPrimitive polynomialDerivative()
TrigonometricPolynomialPrimitive
protected static TrigonometricPolynomialPrimitive polynomialDerivative(TrigonometricPolynomialPrimitive poly)
poly
- polynomial to differentiate
TrigonometricPolynomialFunction
public TrigonometricPolynomialPrimitive polynomialDerivative(int n)
n
- order of derivative (n > 0)
TrigonometricPolynomialFunction
public TrigonometricPolynomialPrimitive scalarAdd(double scalar)
TrigonometricPolynomialPrimitive
scalar
- for addition
TrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive scalarDivide(double scalar)
scalar
- to divide polynomial by
public TrigonometricPolynomialPrimitive scalarMultiply(double scalar)
TrigonometricPolynomialPrimitive
by a scalar
scalar
- for multiplication
TrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive scalarSubtract(double scalar)
scalar
- to subtract
TrigonometricPolynomialFunction
public TrigonometricPolynomialPrimitive subtract(TrigonometricPolynomialPrimitive poly)
TrigonometricPolynomialPrimitive
poly
- to Subtract
TrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive subtract(PolynomialFunction poly)
PolynomialFunction
poly
- to Subtract
TrigonometricPolynomialPrimitive
public TrigonometricPolynomialPrimitive subtract(TrigonometricPolynomialFunction poly)
TrigonometricPolynomialFunction
poly
- to Subtract
TrigonometricPolynomialPrimitive
public String toString()
toString
in class Object
public double value(double x)
value
in interface UnivariateFunction
x
- abscissa
public double value(int n, double x)
n
- order of derivativex
- abscissa
public DerivativeStructure value(DerivativeStructure t)
UnivariateDifferentiableFunction
classes compute both the
value and the first derivative of the function.
value
in interface UnivariateDifferentiableFunction
t
- function input value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |