Package org.drip.function.r1tor1operator
Class Polynomial
java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.function.r1tor1operator.Polynomial
public class Polynomial extends R1ToR1
Polynomial provides the evaluation of the nth order Polynomial and its derivatives for a
specified variate.
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd To Rd Function Analysis
- Package = Built-in R1 To R1 Operator Functions
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description Polynomial(int iDegree)Polynomial constructor -
Method Summary
Modifier and Type Method Description doubleconditionNumber(double x)Compute the Condition Number at the specified Variatedoublederivative(double dblVariate, int iOrder)Calculate the derivative as a doubledoubleevaluate(double dblVariate)Evaluate for the given variatedoublegetDegree()Retrieve the degree of the polynomialdoubleintegrate(double dblBegin, double dblEnd)Integrate over the given rangeMethods inherited from class org.drip.function.definition.R1ToR1
antiDerivative, differential, differential, maxima, maxima, minima, minima, poleResidueMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Polynomial
public Polynomial(int iDegree) throws java.lang.ExceptionPolynomial constructor- Parameters:
iDegree- Degree of the Polynomial- Throws:
java.lang.Exception- Thrown if the input is invalid
-
-
Method Details
-
evaluate
public double evaluate(double dblVariate) throws java.lang.ExceptionDescription copied from class:R1ToR1Evaluate for the given variate -
derivative
public double derivative(double dblVariate, int iOrder) throws java.lang.ExceptionDescription copied from class:R1ToR1Calculate the derivative as a double- Overrides:
derivativein classR1ToR1- Parameters:
dblVariate- Variate at which the derivative is to be calculatediOrder- Order of the derivative to be computed- Returns:
- The Derivative
- Throws:
java.lang.Exception- Thrown if Inputs are Invalid
-
integrate
public double integrate(double dblBegin, double dblEnd) throws java.lang.ExceptionDescription copied from class:R1ToR1Integrate over the given range -
getDegree
public double getDegree()Retrieve the degree of the polynomial- Returns:
- Degree of the polynomial
-
conditionNumber
public double conditionNumber(double x) throws java.lang.ExceptionDescription copied from class:R1ToR1Compute the Condition Number at the specified Variate- Overrides:
conditionNumberin classR1ToR1- Parameters:
x- Variate- Returns:
- The Condition Number
- Throws:
java.lang.Exception- Thrown if the Condition Number cannor be computed
-