Trait peroxide::numerical::integral::GKIntegrable

source ·
pub trait GKIntegrable:
    GLKIntegrable
    + Sub<Self, Output = Self>
    + Sized
    + Clone {
    // Required methods
    fn is_finite(&self) -> bool;
    fn gk_norm(&self) -> f64;

    // Provided method
    fn is_within_tol(&self, tol: f64) -> bool { ... }
}
Expand description

Type that can be integrated using Gauss Kronrod Quadrature

Required Methods§

source

fn is_finite(&self) -> bool

Returns true if this object is neither infinite nor NaN.

source

fn gk_norm(&self) -> f64

Returns the value of the norm used by Gauss Kronrod Quadrature to compute relative tolerances.

Provided Methods§

source

fn is_within_tol(&self, tol: f64) -> bool

Returns true if this object is less than the tolerance passed as the tol argument. By default, returns true if its gk_norm is less than tol.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl GKIntegrable for f64

source§

fn is_finite(&self) -> bool

source§

fn gk_norm(&self) -> f64

Implementors§