Struct probability::prelude::Uniform [−][src]
A continuous uniform distribution.
Implementations
impl Uniform
[src]
pub fn new(a: f64, b: f64) -> Self
[src]
Create a uniform distribution on interval [a, b]
.
It should hold that a < b
.
pub fn a(&self) -> f64
[src]
Return the left endpoint of the support.
pub fn b(&self) -> f64
[src]
Return the right endpoint of the support.
Trait Implementations
impl Clone for Uniform
[src]
impl Continuous for Uniform
[src]
impl Copy for Uniform
[src]
impl Debug for Uniform
[src]
impl Default for Uniform
[src]
impl Distribution for Uniform
[src]
impl Entropy for Uniform
[src]
impl Inverse for Uniform
[src]
impl Kurtosis for Uniform
[src]
impl Mean for Uniform
[src]
impl Median for Uniform
[src]
impl Sample for Uniform
[src]
impl Skewness for Uniform
[src]
impl Variance for Uniform
[src]
Auto Trait Implementations
impl RefUnwindSafe for Uniform
impl Send for Uniform
impl Sync for Uniform
impl Unpin for Uniform
impl UnwindSafe for Uniform
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,