[][src]Struct gauss_quad::GaussJacobi

pub struct GaussJacobi {
    pub nodes: Vec<f64>,
    pub weights: Vec<f64>,
}

Fields

nodes: Vec<f64>weights: Vec<f64>

Implementations

impl GaussJacobi[src]

pub fn init(deg: usize, alpha: f64, beta: f64) -> GaussJacobi[src]

pub fn nodes_and_weights(
    deg: usize,
    alpha: f64,
    beta: f64
) -> (Vec<f64>, Vec<f64>)
[src]

Apply Golub-Welsch algorithm to determine Gauss-Jacobi nodes & weights see Gil, Segura, Temme - Numerical Methods for Special Functions

pub fn integrate<F>(&self, a: f64, b: f64, integrand: F) -> f64 where
    F: Fn(f64) -> f64
[src]

Perform quadrature of integrand using given nodes x and weights w

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.