Class AbstractGaussianContribution.GaussQuadrature

    • Method Detail

      • integrate

        public double[] integrate​(UnivariateVectorFunction f,
                                  double lowerBound,
                                  double upperBound)
        Integrates a given function on the given interval.
        Parameters:
        f - Function to integrate.
        lowerBound - Lower bound of the integration interval.
        upperBound - Upper bound of the integration interval.
        Returns:
        the integral of the weighted function.
      • integrate

        public <T extends CalculusFieldElement<T>> T[] integrate​(CalculusFieldUnivariateVectorFunction<T> f,
                                                                 T lowerBound,
                                                                 T upperBound,
                                                                 Field<T> field)
        Integrates a given function on the given interval.
        Type Parameters:
        T - the type of the field elements
        Parameters:
        f - Function to integrate.
        lowerBound - Lower bound of the integration interval.
        upperBound - Upper bound of the integration interval.
        field - field utilized by default
        Returns:
        the integral of the weighted function.