Class DerivativePolynomialEvaluation
java.lang.Object
com.irurueta.numerical.polynomials.estimators.PolynomialEvaluation
com.irurueta.numerical.polynomials.estimators.DerivativePolynomialEvaluation
- All Implemented Interfaces:
Serializable
Contains an evaluation of the derivative of a given order of a polynomial and
the point where such derivative has been evaluated.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Order of derivative.static final int
Minimum allowed derivative order.private double
Point where derivative of a given order has been evaluated. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DerivativePolynomialEvaluation
(double x, double evaluation) DerivativePolynomialEvaluation
(double x, double evaluation, int derivativeOrder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets order of derivative.getType()
Gets type of polynomial evaluation.double
getX()
Gets point where polynomial derivative has been evaluated.final void
setDerivativeOrder
(int derivativeOrder) Sets order of derivative.void
setX
(double x) Sets point where polynomial derivative has been evaluated.Methods inherited from class com.irurueta.numerical.polynomials.estimators.PolynomialEvaluation
getEvaluation, setEvaluation
-
Field Details
-
MIN_DERIVATIVE_ORDER
public static final int MIN_DERIVATIVE_ORDERMinimum allowed derivative order.- See Also:
-
x
private double xPoint where derivative of a given order has been evaluated. -
derivativeOrder
private int derivativeOrderOrder of derivative.
-
-
Constructor Details
-
DerivativePolynomialEvaluation
public DerivativePolynomialEvaluation()Constructor. -
DerivativePolynomialEvaluation
public DerivativePolynomialEvaluation(double x, double evaluation, int derivativeOrder) Constructor.- Parameters:
x
- point where derivative of polynomial has been evaluated.evaluation
- evaluation of nth-derivative of polynomial at point x.derivativeOrder
- order of derivative.- Throws:
IllegalArgumentException
- if order of derivative is less than 1.
-
DerivativePolynomialEvaluation
public DerivativePolynomialEvaluation(double x, double evaluation) - Parameters:
x
- point where derivative of polynomial has been evaluated.evaluation
- evaluation of nth-derivative of polynomial at point x.
-
-
Method Details
-
getX
public double getX()Gets point where polynomial derivative has been evaluated.- Returns:
- point where polynomial derivative has been evaluated.
-
setX
public void setX(double x) Sets point where polynomial derivative has been evaluated.- Parameters:
x
- point where polynomial derivative has been evaluated.
-
getDerivativeOrder
public int getDerivativeOrder()Gets order of derivative.- Returns:
- order of derivative.
-
setDerivativeOrder
public final void setDerivativeOrder(int derivativeOrder) Sets order of derivative.- Parameters:
derivativeOrder
- order of derivative.- Throws:
IllegalArgumentException
- if order of derivative is less than 1.
-
getType
Gets type of polynomial evaluation.- Specified by:
getType
in classPolynomialEvaluation
- Returns:
- type of polynomial evaluation.
-