Class LaguerreRule

    • Constructor Detail

      • LaguerreRule

        public LaguerreRule​(int n,
                            double precision)
        Create a Laguerre rule of the given order.
        Parameters:
        n - the number of points in the quadrature rule
        precision - the precision of the estimates of the coefficients
    • Method Detail

      • getCoefficients

        public double[] getCoefficients()
        Description copied from interface: GaussianQuadratureRule
        Get the coefficients \(c_i\) associated with each evaluation point \(x_i\).
        Specified by:
        getCoefficients in interface GaussianQuadratureRule
        Returns:
        the coefficients of the evaluation points
      • getWeighting

        public double getWeighting​(double x)
        Description copied from interface: GaussianQuadratureRule
        Get the weighting \(w(x_i)\) associated with a point \(x_i\).
        Specified by:
        getWeighting in interface GaussianQuadratureRule
        Parameters:
        x - the evaluation point
        Returns:
        the weighting of the given evaluation point \(w(x)\)
      • supportsInterval

        public boolean supportsInterval​(double a,
                                        double b)
        Description copied from interface: GaussianQuadratureRule
        Return whether the given interval (a,b) is supported by this rule.
        Specified by:
        supportsInterval in interface GaussianQuadratureRule
        Parameters:
        a - the start point of the interval
        b - the end point of the interval
        Returns:
        true if the interval is supported