Class RealFunctionIntegrator1DFactory
- java.lang.Object
-
- com.opengamma.strata.math.impl.integration.RealFunctionIntegrator1DFactory
-
public final class RealFunctionIntegrator1DFactory extends Object
Factory class for 1-D integrators that do not take arguments.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXTENDED_TRAPEZOID
Extended trapezoid integrator namestatic ExtendedTrapezoidIntegrator1D
EXTENDED_TRAPEZOID_INSTANCE
static String
ROMBERG
Romberg integrator namestatic RombergIntegrator1D
ROMBERG_INSTANCE
static String
SIMPSON
Simpson integrator namestatic SimpsonIntegrator1D
SIMPSON_INSTANCE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Integrator1D<Double,Double>
getIntegrator(String integratorName)
Given a name, returns an instance of that integrator.static String
getIntegratorName(Integrator1D<Double,Double> integrator)
Given an integrator, returns its name.
-
-
-
Field Detail
-
ROMBERG
public static final String ROMBERG
Romberg integrator name- See Also:
- Constant Field Values
-
ROMBERG_INSTANCE
public static final RombergIntegrator1D ROMBERG_INSTANCE
-
SIMPSON
public static final String SIMPSON
Simpson integrator name- See Also:
- Constant Field Values
-
SIMPSON_INSTANCE
public static final SimpsonIntegrator1D SIMPSON_INSTANCE
-
EXTENDED_TRAPEZOID
public static final String EXTENDED_TRAPEZOID
Extended trapezoid integrator name- See Also:
- Constant Field Values
-
EXTENDED_TRAPEZOID_INSTANCE
public static final ExtendedTrapezoidIntegrator1D EXTENDED_TRAPEZOID_INSTANCE
-
-
Method Detail
-
getIntegrator
public static Integrator1D<Double,Double> getIntegrator(String integratorName)
Given a name, returns an instance of that integrator.- Parameters:
integratorName
- the name of the integrator- Returns:
- the integrator
- Throws:
IllegalArgumentException
- if the integrator name is null or there is no integrator for that name
-
getIntegratorName
public static String getIntegratorName(Integrator1D<Double,Double> integrator)
Given an integrator, returns its name.- Parameters:
integrator
- the integrator- Returns:
- the name of that integrator (null if not found)
-
-