integrating a weighted
function.
| Modifier and Type | Field and Description |
|---|---|
| private final double[] | points
Nodes. |
| private final double[] | weights
Nodes weights. |
| Access | Constructor and Description |
|---|---|
| public | GaussIntegrator(double[]
Integration points. points, double[] Weights of the corresponding integration nodes. weights)Creates an integrator from the given |
| public | GaussIntegrator(Pair<double[], double[]>
Integration points and corresponding weights. pointsAndWeights)Creates an integrator from the given pair of points (first element of the pair) and weights (second element of the pair. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public double | Returns: the integration point.index of the integration point index)Gets the integration point at the given index. |
| public double | Returns: the weight.index of the integration point index)Gets the weight of the integration point at the given index. |
| public double | Returns: the integral of the weighted function.Function to integrate. f)Returns an estimate of the integral of |
| points | back to summary |
|---|---|
| private final double[] points Nodes. | |
| weights | back to summary |
|---|---|
| private final double[] weights Nodes weights. | |
| GaussIntegrator | back to summary |
|---|---|
| public GaussIntegrator(double[] points, double[] weights) throws NonMonotonicSequenceException, DimensionMismatchException Creates an integrator from the given
| |
| GaussIntegrator | back to summary |
|---|---|
| public GaussIntegrator(Pair<double[], double[]> pointsAndWeights) throws NonMonotonicSequenceException Creates an integrator from the given pair of points (first element of the pair) and weights (second element of the pair.
| |
| getNumberOfPoints | back to summary |
|---|---|
public int getNumberOfPoints()
| |
| getPoint | back to summary |
|---|---|
| public double getPoint(int index) Gets the integration point at the given index. The index must be in the valid range but no check is performed.
| |
| getWeight | back to summary |
|---|---|
| public double getWeight(int index) Gets the weight of the integration point at the given index. The index must be in the valid range but no check is performed.
| |
| integrate | back to summary |
|---|---|
| public double integrate(UnivariateFunction f) Returns an estimate of the integral of
| |