Class DerivativePolynomialEvaluation

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

public class DerivativePolynomialEvaluation extends PolynomialEvaluation
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 Details

    • MIN_DERIVATIVE_ORDER

      public static final int MIN_DERIVATIVE_ORDER
      Minimum allowed derivative order.
      See Also:
    • x

      private double x
      Point where derivative of a given order has been evaluated.
    • derivativeOrder

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

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