Class IntegralPolynomialEvaluation
java.lang.Object
com.irurueta.numerical.polynomials.estimators.PolynomialEvaluation
com.irurueta.numerical.polynomials.estimators.IntegralPolynomialEvaluation
- All Implemented Interfaces:
Serializable
Contains an evaluation of the nth-integral of a polynomial and the
point where such integral has been evaluated.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double[]Constant terms of integral.private intOrder of integral.static final intMinimum allowed integral order.private doublePoint where integral of a given order has been evaluated. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.IntegralPolynomialEvaluation(double x, double evaluation) Constructor.IntegralPolynomialEvaluation(double x, double evaluation, double[] constants) Constructor.IntegralPolynomialEvaluation(double x, double evaluation, double[] constants, int integralOrder) Constructor.IntegralPolynomialEvaluation(double x, double evaluation, int integralOrder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Gets constant terms of integral.intGets integral order.getType()Gets type of polynomial evaluation.doublegetX()Gets point where nth-polynomial integral has been evaluated.voidsetConstant(double[] constants) Sets constant terms of integral.final voidsetIntegralOrder(int integralOrder) Sets integral order.voidsetX(double x) Sets point where nth-polynomial integral has been evaluated.Methods inherited from class com.irurueta.numerical.polynomials.estimators.PolynomialEvaluation
getEvaluation, setEvaluation
-
Field Details
-
MIN_INTEGRAL_ORDER
public static final int MIN_INTEGRAL_ORDERMinimum allowed integral order.- See Also:
-
x
private double xPoint where integral of a given order has been evaluated. -
constants
private double[] constantsConstant terms of integral. -
integralOrder
private int integralOrderOrder of integral.
-
-
Constructor Details
-
IntegralPolynomialEvaluation
public IntegralPolynomialEvaluation()Constructor. -
IntegralPolynomialEvaluation
public IntegralPolynomialEvaluation(double x, double evaluation, double[] constants, int integralOrder) Constructor.- Parameters:
x- point where integral of polynomial has been evaluated.evaluation- evaluation of nth-integral of polynomial at point x.constants- constant terms of nth-integral.integralOrder- order of integral.- Throws:
IllegalArgumentException- if order of integral is less than 1.
-
IntegralPolynomialEvaluation
public IntegralPolynomialEvaluation(double x, double evaluation, double[] constants) Constructor.- Parameters:
x- point where integral of polynomial has been evaluated.evaluation- evaluation of nth-integral of polynomial at point x.constants- constant terms of nth-integral.
-
IntegralPolynomialEvaluation
public IntegralPolynomialEvaluation(double x, double evaluation, int integralOrder) Constructor.- Parameters:
x- point where integral of polynomial has been evaluated.evaluation- evaluation of nth-integral of polynomial at point x.integralOrder- order of integral.- Throws:
IllegalArgumentException- if order of integral is less than 1.
-
IntegralPolynomialEvaluation
public IntegralPolynomialEvaluation(double x, double evaluation) Constructor.- Parameters:
x- point where integral of polynomial has been evaluated.evaluation- evaluation of nth-integral of polynomial at point x.
-
-
Method Details
-
getX
public double getX()Gets point where nth-polynomial integral has been evaluated.- Returns:
- point where nth-polynomial integral has been evaluated.
-
setX
public void setX(double x) Sets point where nth-polynomial integral has been evaluated.- Parameters:
x- point where nth-polynomial integral has been evaluated.
-
getConstants
public double[] getConstants()Gets constant terms of integral.- Returns:
- constant terms of integral.
-
setConstant
public void setConstant(double[] constants) Sets constant terms of integral.- Parameters:
constants- constant terms of integral.
-
getIntegralOrder
public int getIntegralOrder()Gets integral order.- Returns:
- integral order.
-
setIntegralOrder
public final void setIntegralOrder(int integralOrder) Sets integral order.- Parameters:
integralOrder- integral order.- Throws:
IllegalArgumentException- if integral order is less than 1.
-
getType
Gets type of polynomial evaluation.- Specified by:
getTypein classPolynomialEvaluation- Returns:
- type of polynomial evaluation.
-