public class GaussHermiteQuadrature extends GaussQuadrature implements java.io.Serializable
GaussQuadrature.NumberOfPoints
rescalingFactors, weights, xValues
Constructor and Description |
---|
GaussHermiteQuadrature()
Constructor.
|
GaussHermiteQuadrature(GaussQuadrature.NumberOfPoints numberOfPoints)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getIntegralApproximation(AbstractMathematicalFunction functionToEvaluate,
java.util.List<java.lang.Integer> parameterIndices,
Matrix lowerCholeskyTriangle)
This method returns the value of a multi-dimension integral
|
protected double |
getMultiDimensionIntegral(AbstractMathematicalFunction functionToEvaluate,
java.util.List<java.lang.Integer> parameterIndices,
Matrix lowerCholeskyTriangle)
This method returns the value of a multi-dimension integral
|
protected double |
getOneDimensionIntegral(AbstractMathematicalFunction functionToEvaluate,
java.lang.Integer parameterIndex,
double standardDeviation)
This method makes it possible to integrate an AbstractStatisticalExpression through Gauss-Hermite quadrature.
|
java.util.List<java.lang.Double> |
getRescalingFactors()
This method returns the rescaling factor for the numerical integration.
|
java.util.List<java.lang.Double> |
getWeights()
This method returns the weights associated to the numerical integration.
|
java.util.List<java.lang.Double> |
getXValues()
This method returns the x values for the numerical integration.
|
getOrderedNodes
getLowerBound, getUpperBound, setLowerBound, setUpperBound, setXValuesFromListOfPoints
public GaussHermiteQuadrature(GaussQuadrature.NumberOfPoints numberOfPoints)
numberOfPoints
- a NumberOfPoints enum variable (either NumberOfPoints.N5, NumberOfPoints.N10, or NumberOfPoints.N15)public GaussHermiteQuadrature()
public java.util.List<java.lang.Double> getWeights()
NumericalIntegrationMethod
getWeights
in class NumericalIntegrationMethod
public java.util.List<java.lang.Double> getXValues()
NumericalIntegrationMethod
getXValues
in class NumericalIntegrationMethod
public java.util.List<java.lang.Double> getRescalingFactors()
NumericalIntegrationMethod
getRescalingFactors
in class NumericalIntegrationMethod
protected double getOneDimensionIntegral(AbstractMathematicalFunction functionToEvaluate, java.lang.Integer parameterIndex, double standardDeviation)
functionToEvaluate
- an EvaluableFunction instance that returns DoubleparameterIndex
- the index of the parameter over which the integration is madestandardDeviation
- the standard deviation of this variableprotected double getMultiDimensionIntegral(AbstractMathematicalFunction functionToEvaluate, java.util.List<java.lang.Integer> parameterIndices, Matrix lowerCholeskyTriangle)
functionToEvaluate
- an EvaluableFunction instance that returns DoubleparameterIndices
- the indices of the parameters over which the integration is madelowerCholeskyTriangle
- the lower triangle of the Cholesky factorization of the variance-covariance matrixpublic double getIntegralApproximation(AbstractMathematicalFunction functionToEvaluate, java.util.List<java.lang.Integer> parameterIndices, Matrix lowerCholeskyTriangle)
functionToEvaluate
- an EvaluableFunction instance that returns DoubleparameterIndices
- the indices of the parameters over which the integration is madelowerCholeskyTriangle
- the lower triangle of the Cholesky factorization of the variance-covariance matrix