Package org.drip.function.r1tor1
Class MonicPolynomial
java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.function.r1tor1.MonicPolynomial
public class MonicPolynomial extends R1ToR1
MonicPolynomial implements the Multi-root R1 to R1 Monic Polynomial.
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd To Rd Function Analysis
- Package = Built-in R1 To R1 Functions
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description MonicPolynomial(double[] rootArray)
MonicPolynomial constructor -
Method Summary
Modifier and Type Method Description double
evaluate(double x)
Evaluate for the given variatedouble
logGammaProduct(int a, int b, R1ToR1 logGammaEstimator)
Compute the Log Product over [a, a + 1, ..., b] of the Monic Polynomialdouble[]
rootArray()
Retrieve the Array of RootsMethods inherited from class org.drip.function.definition.R1ToR1
antiDerivative, conditionNumber, derivative, differential, differential, integrate, maxima, maxima, minima, minima, poleResidue
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MonicPolynomial
public MonicPolynomial(double[] rootArray) throws java.lang.ExceptionMonicPolynomial constructor- Parameters:
rootArray
- The Array of Roots- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
-
Method Details
-
rootArray
public double[] rootArray()Retrieve the Array of Roots- Returns:
- The Array of Roots
-
evaluate
public double evaluate(double x) throws java.lang.ExceptionDescription copied from class:R1ToR1
Evaluate for the given variate -
logGammaProduct
Compute the Log Product over [a, a + 1, ..., b] of the Monic Polynomial- Parameters:
a
- ab
- blogGammaEstimator
- Log Gamma Estimator- Returns:
- The Log Product over [a, a + 1, ..., b] of the Monic Polynomial
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-