Struct probability::distribution::Triangular [−][src]
pub struct Triangular { /* fields omitted */ }
A triangular distribution.
Methods
impl Triangular
[src]
impl Triangular
pub fn new(a: f64, b: f64, c: f64) -> Self
[src]
pub fn new(a: f64, b: f64, c: f64) -> Self
Create a triangular distribution with mode c
on interval [a, b]
.
It should hold that a < b
, a <= c
, and c <= b
.
pub fn a(&self) -> f64
[src]
pub fn a(&self) -> f64
Return the left endpoint of the support.
pub fn b(&self) -> f64
[src]
pub fn b(&self) -> f64
Return the right endpoint of the support.
pub fn c(&self) -> f64
[src]
pub fn c(&self) -> f64
Return the mode parameter.
Trait Implementations
impl Clone for Triangular
[src]
impl Clone for Triangular
fn clone(&self) -> Triangular
[src]
fn clone(&self) -> Triangular
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Triangular
[src]
impl Copy for Triangular
impl Debug for Triangular
[src]
impl Debug for Triangular
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Continuous for Triangular
[src]
impl Continuous for Triangular
impl Distribution for Triangular
[src]
impl Distribution for Triangular
type Value = f64
The type of outcomes.
fn distribution(&self, x: f64) -> f64
[src]
fn distribution(&self, x: f64) -> f64
Compute the cumulative distribution function.
impl Entropy for Triangular
[src]
impl Entropy for Triangular
impl Inverse for Triangular
[src]
impl Inverse for Triangular
impl Kurtosis for Triangular
[src]
impl Kurtosis for Triangular
impl Mean for Triangular
[src]
impl Mean for Triangular
impl Median for Triangular
[src]
impl Median for Triangular
impl Modes for Triangular
[src]
impl Modes for Triangular
impl Sample for Triangular
[src]
impl Sample for Triangular
impl Skewness for Triangular
[src]
impl Skewness for Triangular
impl Variance for Triangular
[src]
impl Variance for Triangular
Auto Trait Implementations
impl Send for Triangular
impl Send for Triangular
impl Sync for Triangular
impl Sync for Triangular