pub struct Uniform<P, D> { /* private fields */ }Expand description
Uniform kernel, also known as «boxcar function», with normalized density.
Implementations§
Source§impl<P, D> Uniform<P, D>where
P: PartialOrd,
impl<P, D> Uniform<P, D>where
P: PartialOrd,
Sourcepub fn with_bounds(range: RangeInclusive<P>) -> Self
pub fn with_bounds(range: RangeInclusive<P>) -> Self
Construct the kernel with specified inclusive bounds.
Trait Implementations§
Source§impl<P, D> Kernel for Uniform<P, D>where
Self: Density<Param = P, Output = D> + Sample<Param = P>,
P: Copy + SelfAdd + SelfMul + PartialOrd + Zero + ConstSqrt3 + SelfNeg + SelfMulAdd,
impl<P, D> Kernel for Uniform<P, D>where
Self: Density<Param = P, Output = D> + Sample<Param = P>,
P: Copy + SelfAdd + SelfMul + PartialOrd + Zero + ConstSqrt3 + SelfNeg + SelfMulAdd,
impl<P: Copy, D: Copy> Copy for Uniform<P, D>
Auto Trait Implementations§
impl<P, D> Freeze for Uniform<P, D>where
P: Freeze,
impl<P, D> RefUnwindSafe for Uniform<P, D>where
P: RefUnwindSafe,
D: RefUnwindSafe,
impl<P, D> Send for Uniform<P, D>
impl<P, D> Sync for Uniform<P, D>
impl<P, D> Unpin for Uniform<P, D>
impl<P, D> UnwindSafe for Uniform<P, D>where
P: UnwindSafe,
D: UnwindSafe,
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