Class SymmetricGaussIntegrator

java.lang.Object
org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator
org.apache.commons.math4.analysis.integration.gauss.SymmetricGaussIntegrator

public class SymmetricGaussIntegrator
extends GaussIntegrator
This class's implements integrate method assuming that the integral is symmetric about 0. This allows to reduce numerical errors.
Since:
3.3
  • Constructor Summary

    Constructors 
    Constructor Description
    SymmetricGaussIntegrator​(double[] points, double[] weights)
    Creates an integrator from the given points and weights.
    SymmetricGaussIntegrator​(Pair<double[],​double[]> pointsAndWeights)
    Creates an integrator from the given pair of points (first element of the pair) and weights (second element of the pair.
  • Method Summary

    Modifier and Type Method Description
    double integrate​(UnivariateFunction f)
    Returns an estimate of the integral of f(x) * w(x), where w is a weight function that depends on the actual flavor of the Gauss integration scheme.

    Methods inherited from class org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator

    getNumberOfPoints, getPoint, getWeight

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait