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§
Provided Methods§
sourcefn is_within_tol(&self, tol: f64) -> bool
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.