#[non_exhaustive]pub enum Discrepancy {
Centered,
WrapAround,
Mixture,
L2Star,
}Expand description
A discrepancy measure (SciPy’s method). All are L² discrepancies with closed forms that
cost O(n² d); each is the worst-case integration error, over a unit ball of functions, of
the equal-weight rule on the points.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Centered
Centered L² discrepancy ('CD', SciPy’s default): boxes with a corner at the nearest
vertex of the cube. Invariant under reflections x_k → 1 − x_k.
WrapAround
Wrap-around L² discrepancy ('WD'): boxes that wrap around the torus. Invariant under
shifts modulo 1.
Mixture
Mixture discrepancy ('MD'), which combines the two and avoids some of their blind spots.
L2Star
The L²-star discrepancy ('L2-star'): boxes anchored at the origin, Warnock’s formula.
Returned as the discrepancy itself; the others are returned squared, as SciPy does.
Trait Implementations§
Source§impl Clone for Discrepancy
impl Clone for Discrepancy
impl Copy for Discrepancy
Source§impl Debug for Discrepancy
impl Debug for Discrepancy
impl Eq for Discrepancy
Source§impl PartialEq for Discrepancy
impl PartialEq for Discrepancy
impl StructuralPartialEq for Discrepancy
Auto Trait Implementations§
impl Freeze for Discrepancy
impl RefUnwindSafe for Discrepancy
impl Send for Discrepancy
impl Sync for Discrepancy
impl Unpin for Discrepancy
impl UnsafeUnpin for Discrepancy
impl UnwindSafe for Discrepancy
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