pub enum QuadratureRule {
Trapezoid,
Simpson,
Periodic,
GaussLegendre,
GaussLegendrePolar,
}Expand description
How an axis’s quadrature weights were constructed.
Variants§
Trapezoid
Trapezoid rule on the samples (endpoints included, any spacing).
Simpson
Composite Simpson rule on uniform samples (odd count).
Periodic
Rectangle rule on a periodic grid (spectrally accurate for smooth periodic integrands).
GaussLegendre
Gauss-Legendre nodes and weights (exact for polynomials of degree 2n - 1).
GaussLegendrePolar
Gauss-Legendre in cos θ for a polar axis: nodes θᵢ = acos(xᵢ) with weights
wᵢ / sin θᵢ, so that multiplying by the sin θ Jacobian recovers the exact rule.
Trait Implementations§
Source§impl Clone for QuadratureRule
impl Clone for QuadratureRule
impl Copy for QuadratureRule
Source§impl Debug for QuadratureRule
impl Debug for QuadratureRule
impl Eq for QuadratureRule
Source§impl PartialEq for QuadratureRule
impl PartialEq for QuadratureRule
impl StructuralPartialEq for QuadratureRule
Auto Trait Implementations§
impl Freeze for QuadratureRule
impl RefUnwindSafe for QuadratureRule
impl Send for QuadratureRule
impl Sync for QuadratureRule
impl Unpin for QuadratureRule
impl UnsafeUnpin for QuadratureRule
impl UnwindSafe for QuadratureRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more