Function rv::misc::gauss_legendre_quadrature_cached

source ·
pub fn gauss_legendre_quadrature_cached<F>(
    f: F,
    (a, b): (f64, f64),
    weights: &[f64],
    roots: &[f64],
) -> f64
where F: Fn(f64) -> f64,
Expand description

Gauss Legendre Quadrature with the table precomputed (cached)

§Type

  • f, n, (a,b) -> f64
    • f: Numerical function (Fn(f64) -> f64)
    • (a,b): Interval of integration
    • weights the vector of weights
    • roots the vector of roots

§Reference