[−][src]Struct rstat::Probability
Methods
impl Probability
[src]
pub fn new(p: f64) -> ProbabilityResult<Probability>
[src]
pub fn zero() -> Probability
[src]
pub fn half() -> Probability
[src]
pub fn one() -> Probability
[src]
pub fn powf(self, e: f64) -> Probability
[src]
pub fn powi(self, e: i32) -> Probability
[src]
pub fn normalised<P: Into<Probability>>(probs: Vec<P>) -> Vec<Probability>
[src]
Trait Implementations
impl Clone for Probability
[src]
fn clone(&self) -> Probability
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<f64> for Probability
[src]
fn from(p: f64) -> Probability
[src]
impl From<Probability> for f64
[src]
fn from(p: Probability) -> f64
[src]
impl Copy for Probability
[src]
impl PartialOrd<Probability> for Probability
[src]
fn partial_cmp(&self, other: &Probability) -> Option<Ordering>
[src]
fn lt(&self, other: &Probability) -> bool
[src]
fn le(&self, other: &Probability) -> bool
[src]
fn gt(&self, other: &Probability) -> bool
[src]
fn ge(&self, other: &Probability) -> bool
[src]
impl PartialEq<Probability> for Probability
[src]
fn eq(&self, other: &Probability) -> bool
[src]
fn ne(&self, other: &Probability) -> bool
[src]
impl Display for Probability
[src]
impl Debug for Probability
[src]
impl Add<Probability> for Probability
[src]
type Output = Probability
The resulting type after applying the +
operator.
fn add(self, other: Probability) -> Probability
[src]
impl Sub<Probability> for Probability
[src]
type Output = Probability
The resulting type after applying the -
operator.
fn sub(self, other: Probability) -> Probability
[src]
impl Mul<Probability> for Probability
[src]
type Output = Probability
The resulting type after applying the *
operator.
fn mul(self, other: Probability) -> Probability
[src]
impl Div<Probability> for Probability
[src]
type Output = Probability
The resulting type after applying the /
operator.
fn div(self, other: Probability) -> Probability
[src]
impl Not for Probability
[src]
type Output = Probability
The resulting type after applying the !
operator.
fn not(self) -> Probability
[src]
Auto Trait Implementations
impl Send for Probability
impl Sync for Probability
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,