pub struct BetaDistribution {
pub alpha_parameter: f64,
pub beta_parameter: f64,
pub support_lower_bound: f64,
pub support_upper_bound: f64,
pub distribution_name: String,
pub description: String,
}Expand description
Parameters of a Beta distribution on a finite interval.
The Beta family models a random proportion or probability. Its density is
shaped by two positive parameters and supported on [support_lower_bound, support_upper_bound] (the standard Beta uses [0, 1]).
Fields§
§alpha_parameter: f64First shape parameter α; must be > 0. Larger values push mass toward
the upper bound.
beta_parameter: f64Second shape parameter β; must be > 0. Larger values push mass toward
the lower bound.
support_lower_bound: f64Inclusive lower bound of the support; 0.0 for the standard Beta.
support_upper_bound: f64Inclusive upper bound of the support; 1.0 for the standard Beta.
distribution_name: StringOptional human-readable name; unused by the numerics, defaults to empty.
description: StringOptional human-readable description; unused by the numerics, defaults to empty.
Trait Implementations§
Source§impl Cdf for BetaDistribution
impl Cdf for BetaDistribution
Source§impl Clone for BetaDistribution
impl Clone for BetaDistribution
Source§fn clone(&self) -> BetaDistribution
fn clone(&self) -> BetaDistribution
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 moreSource§impl Debug for BetaDistribution
impl Debug for BetaDistribution
Source§impl Default for BetaDistribution
impl Default for BetaDistribution
Source§fn default() -> BetaDistribution
fn default() -> BetaDistribution
Returns the “default value” for a type. Read more
Source§impl Moments for BetaDistribution
impl Moments for BetaDistribution
Source§impl Pdf for BetaDistribution
impl Pdf for BetaDistribution
Source§impl Quantile for BetaDistribution
impl Quantile for BetaDistribution
Source§impl Sample for BetaDistribution
impl Sample for BetaDistribution
Auto Trait Implementations§
impl Freeze for BetaDistribution
impl RefUnwindSafe for BetaDistribution
impl Send for BetaDistribution
impl Sync for BetaDistribution
impl Unpin for BetaDistribution
impl UnsafeUnpin for BetaDistribution
impl UnwindSafe for BetaDistribution
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