Class IntegralPolynomialEvaluation

java.lang.Object
com.irurueta.numerical.polynomials.estimators.PolynomialEvaluation
com.irurueta.numerical.polynomials.estimators.IntegralPolynomialEvaluation
All Implemented Interfaces:
Serializable

public class IntegralPolynomialEvaluation extends PolynomialEvaluation
Contains an evaluation of the nth-integral of a polynomial and the point where such integral has been evaluated.
See Also:
  • Field Details

    • MIN_INTEGRAL_ORDER

      public static final int MIN_INTEGRAL_ORDER
      Minimum allowed integral order.
      See Also:
    • x

      private double x
      Point where integral of a given order has been evaluated.
    • constants

      private double[] constants
      Constant terms of integral.
    • integralOrder

      private int integralOrder
      Order 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

      public PolynomialEvaluationType getType()
      Gets type of polynomial evaluation.
      Specified by:
      getType in class PolynomialEvaluation
      Returns:
      type of polynomial evaluation.