Struct opensrdk_probability::nonparametric::point_process::dirichlet_process::DirichletProcessParams
source · pub struct DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()>,
T: RandomVariable,{ /* private fields */ }Implementations§
source§impl<G0, T> DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()>,
T: RandomVariable,
impl<G0, T> DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()>,
T: RandomVariable,
pub fn new(
alpha: f64,
g0: BaselineMeasure<G0, T>
) -> Result<Self, DistributionError>
pub fn alpha(&self) -> f64
pub fn g0(&self) -> &BaselineMeasure<G0, T>
Trait Implementations§
source§impl<G0, T> Clone for DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()> + Clone,
T: RandomVariable + Clone,
impl<G0, T> Clone for DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()> + Clone,
T: RandomVariable + Clone,
source§fn clone(&self) -> DirichletProcessParams<G0, T>
fn clone(&self) -> DirichletProcessParams<G0, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more