## Uses of Interfacecom.opengamma.strata.math.impl.function.DoubleFunction1D

• Packages that use DoubleFunction1D
Package Description
com.opengamma.strata.math.impl.function
com.opengamma.strata.math.impl.function.special
com.opengamma.strata.math.impl.rootfinding
• ### Uses of DoubleFunction1D in com.opengamma.strata.math.impl.function

Classes in com.opengamma.strata.math.impl.function that implement DoubleFunction1D
Modifier and Type Class Description
class  RealPolynomialFunction1D
Class representing a polynomial that has real coefficients and takes a real argument.
Methods in com.opengamma.strata.math.impl.function that return DoubleFunction1D
Modifier and Type Method Description
default DoubleFunction1D DoubleFunction1D.add​(double a)
For a DoubleFunction1D $g(x)$, adding a constant $a$ returns the function $h(x) = g(x) + a$.
default DoubleFunction1D DoubleFunction1D.add​(DoubleFunction1D f)
For a DoubleFunction1D $g(x)$, adding a function $f(x)$ returns the function $h(x) = f(x) + g(x)$.
DoubleFunction1D RealPolynomialFunction1D.add​(DoubleFunction1D f)
Adds a function to the polynomial.
default DoubleFunction1D DoubleFunction1D.derivative()
Returns a function that calculates the first derivative.
default DoubleFunction1D DoubleFunction1D.derivative​(FiniteDifferenceType differenceType, double eps)
Returns a function that calculates the first derivative.
default DoubleFunction1D DoubleFunction1D.divide​(double a)
For a DoubleFunction1D $g(x)$, dividing by a constant $a$ returns the function $h(x) = \frac{g(x)}{a}$.
default DoubleFunction1D DoubleFunction1D.divide​(DoubleFunction1D f)
For a DoubleFunction1D $g(x)$, dividing by a function $f(x)$ returns the function $h(x) = \frac{g(x)}{f(x)}$.
static DoubleFunction1D DoubleFunction1D.from​(Function<Double,​Double> f)
Converts a Function<Double, Double> into a DoubleFunction1D.
default DoubleFunction1D DoubleFunction1D.multiply​(double a)
For a DoubleFunction1D $g(x)$, multiplying by a constant $a$ returns the function $h(x) = a g(x)$.
default DoubleFunction1D DoubleFunction1D.multiply​(DoubleFunction1D f)
For a DoubleFunction1D $g(x)$, multiplying by a function $f(x)$ returns the function $h(x) = f(x) g(x)$.
DoubleFunction1D RealPolynomialFunction1D.multiply​(DoubleFunction1D f)
Multiplies the polynomial by a function.
default DoubleFunction1D DoubleFunction1D.subtract​(double a)
For a DoubleFunction1D $g(x)$, subtracting a constant $a$ returns the function $h(x) = g(x) - a$.
default DoubleFunction1D DoubleFunction1D.subtract​(DoubleFunction1D f)
For a DoubleFunction1D $g(x)$, subtracting a function $f(x)$ returns the function $h(x) = f(x) - g(x)$.
DoubleFunction1D RealPolynomialFunction1D.subtract​(DoubleFunction1D f)
Subtracts a function from the polynomial.
Methods in com.opengamma.strata.math.impl.function with parameters of type DoubleFunction1D
Modifier and Type Method Description
default DoubleFunction1D DoubleFunction1D.add​(DoubleFunction1D f)
For a DoubleFunction1D $g(x)$, adding a function $f(x)$ returns the function $h(x) = f(x) + g(x)$.
DoubleFunction1D RealPolynomialFunction1D.add​(DoubleFunction1D f)
Adds a function to the polynomial.
default DoubleFunction1D DoubleFunction1D.divide​(DoubleFunction1D f)
For a DoubleFunction1D $g(x)$, dividing by a function $f(x)$ returns the function $h(x) = \frac{g(x)}{f(x)}$.
default DoubleFunction1D DoubleFunction1D.multiply​(DoubleFunction1D f)
For a DoubleFunction1D $g(x)$, multiplying by a function $f(x)$ returns the function $h(x) = f(x) g(x)$.
DoubleFunction1D RealPolynomialFunction1D.multiply​(DoubleFunction1D f)
Multiplies the polynomial by a function.
default DoubleFunction1D DoubleFunction1D.subtract​(DoubleFunction1D f)
For a DoubleFunction1D $g(x)$, subtracting a function $f(x)$ returns the function $h(x) = f(x) - g(x)$.
DoubleFunction1D RealPolynomialFunction1D.subtract​(DoubleFunction1D f)
Subtracts a function from the polynomial.
• ### Uses of DoubleFunction1D in com.opengamma.strata.math.impl.function.special

Methods in com.opengamma.strata.math.impl.function.special that return DoubleFunction1D
Modifier and Type Method Description
protected DoubleFunction1D OrthogonalPolynomialFunctionGenerator.getOne()
DoubleFunction1D[] HermitePolynomialFunction.getPolynomials​(int n)
DoubleFunction1D[] JacobiPolynomialFunction.getPolynomials​(int n)
DoubleFunction1D[] JacobiPolynomialFunction.getPolynomials​(int n, double alpha, double beta)
Calculates polynomials.
DoubleFunction1D[] LaguerrePolynomialFunction.getPolynomials​(int n)
DoubleFunction1D[] LaguerrePolynomialFunction.getPolynomials​(int n, double alpha)
Gets the polynomials.
DoubleFunction1D[] LegendrePolynomialFunction.getPolynomials​(int n)
abstract DoubleFunction1D[] OrthogonalPolynomialFunctionGenerator.getPolynomials​(int n)
DoubleFunction1D[] OrthonormalHermitePolynomialFunction.getPolynomials​(int n)
protected DoubleFunction1D OrthogonalPolynomialFunctionGenerator.getX()
protected DoubleFunction1D OrthogonalPolynomialFunctionGenerator.getZero()
Methods in com.opengamma.strata.math.impl.function.special that return types with arguments of type DoubleFunction1D
Modifier and Type Method Description
Pair<DoubleFunction1D,​DoubleFunction1D>[] HermitePolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] HermitePolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] JacobiPolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] JacobiPolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] JacobiPolynomialFunction.getPolynomialsAndFirstDerivative​(int n, double alpha, double beta)
Calculates polynomials and derivative.
Pair<DoubleFunction1D,​DoubleFunction1D>[] JacobiPolynomialFunction.getPolynomialsAndFirstDerivative​(int n, double alpha, double beta)
Calculates polynomials and derivative.
Pair<DoubleFunction1D,​DoubleFunction1D>[] LaguerrePolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] LaguerrePolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] LaguerrePolynomialFunction.getPolynomialsAndFirstDerivative​(int n, double alpha)
Gets the polynomials and derivative.
Pair<DoubleFunction1D,​DoubleFunction1D>[] LaguerrePolynomialFunction.getPolynomialsAndFirstDerivative​(int n, double alpha)
Gets the polynomials and derivative.
Pair<DoubleFunction1D,​DoubleFunction1D>[] LegendrePolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] LegendrePolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
abstract Pair<DoubleFunction1D,​DoubleFunction1D>[] OrthogonalPolynomialFunctionGenerator.getPolynomialsAndFirstDerivative​(int n)
abstract Pair<DoubleFunction1D,​DoubleFunction1D>[] OrthogonalPolynomialFunctionGenerator.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] OrthonormalHermitePolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
Pair<DoubleFunction1D,​DoubleFunction1D>[] OrthonormalHermitePolynomialFunction.getPolynomialsAndFirstDerivative​(int n)
• ### Uses of DoubleFunction1D in com.opengamma.strata.math.impl.rootfinding

Methods in com.opengamma.strata.math.impl.rootfinding with parameters of type DoubleFunction1D
Modifier and Type Method Description
protected void RealSingleRootFinder.checkInputs​(DoubleFunction1D function, Double x1, Double x2)
Tests that the inputs to the root-finder are not null, and that a root is bracketed by the bounding values.
Double NewtonRaphsonSingleRootFinder.getRoot​(DoubleFunction1D function, DoubleFunction1D derivative, Double x)
Uses the function and its derivative.
Double NewtonRaphsonSingleRootFinder.getRoot​(DoubleFunction1D function, DoubleFunction1D derivative, Double x1, Double x2)
Uses the function and its derivative.
Double NewtonRaphsonSingleRootFinder.getRoot​(DoubleFunction1D function, Double x)
Double NewtonRaphsonSingleRootFinder.getRoot​(DoubleFunction1D function, Double x1, Double x2)