Class LaguerrePolynomialRealRootFinder
- java.lang.Object
-
- com.opengamma.strata.math.impl.rootfinding.LaguerrePolynomialRealRootFinder
-
- All Implemented Interfaces:
Polynomial1DRootFinder<Double>
public class LaguerrePolynomialRealRootFinder extends Object implements Polynomial1DRootFinder<Double>
Class that calculates the real roots of a polynomial using Laguerre's method. This class is a wrapper for the Commons Math library implementation of Laguerre's method.
-
-
Constructor Summary
Constructors Constructor Description LaguerrePolynomialRealRootFinder()
-
-
-
Method Detail
-
getRoots
public Double[] getRoots(RealPolynomialFunction1D function)
- Specified by:
getRoots
in interfacePolynomial1DRootFinder<Double>
- Parameters:
function
- The function, not null- Returns:
- The roots of the function
- Throws:
MathException
- If there are no real roots; if the Commons method could not evaluate the function; if the Commons method could not converge.
-
-