pub enum MeasureName {
Normal,
Exponential,
Pareto,
Beta,
LogNormal,
Gamma,
Uniform01,
}Expand description
Named continuous distribution. Closed enum per spec §10.7.5’s “User-defined extensions” non-goal — new distributions land as coordinated additions.
Variants§
Normal
The normal distribution.
Exponential
The exponential distribution.
Pareto
The Pareto distribution.
Beta
The beta distribution.
LogNormal
The log-normal distribution.
Gamma
The gamma distribution.
Uniform01
The uniform distribution on [0, 1].
Implementations§
Source§impl MeasureName
impl MeasureName
Sourcepub fn is_proper_probability_measure(self) -> bool
pub fn is_proper_probability_measure(self) -> bool
All currently-named distributions are proper probability measures (unit total mass). V8 accepts them on any interval that matches the distribution’s support.
Trait Implementations§
Source§impl Clone for MeasureName
impl Clone for MeasureName
Source§fn clone(&self) -> MeasureName
fn clone(&self) -> MeasureName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MeasureName
Source§impl Debug for MeasureName
impl Debug for MeasureName
Source§impl<'de> Deserialize<'de> for MeasureName
impl<'de> Deserialize<'de> for MeasureName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MeasureName
Source§impl Hash for MeasureName
impl Hash for MeasureName
Source§impl PartialEq for MeasureName
impl PartialEq for MeasureName
Source§impl Serialize for MeasureName
impl Serialize for MeasureName
impl StructuralPartialEq for MeasureName
Auto Trait Implementations§
impl Freeze for MeasureName
impl RefUnwindSafe for MeasureName
impl Send for MeasureName
impl Sync for MeasureName
impl Unpin for MeasureName
impl UnsafeUnpin for MeasureName
impl UnwindSafe for MeasureName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.