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
sourceimpl<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
sourceimpl<G0: Clone, T: Clone> Clone for DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()>,
T: RandomVariable,
impl<G0: Clone, T: Clone> Clone for DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()>,
T: RandomVariable,
sourcefn clone(&self) -> DirichletProcessParams<G0, T>
fn clone(&self) -> DirichletProcessParams<G0, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<G0: Debug, T: Debug> Debug for DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()>,
T: RandomVariable,
impl<G0: Debug, T: Debug> Debug for DirichletProcessParams<G0, T>where
G0: Distribution<Value = T, Condition = ()>,
T: RandomVariable,
Auto Trait Implementations
impl<G0, T> RefUnwindSafe for DirichletProcessParams<G0, T>where
G0: RefUnwindSafe,
impl<G0, T> Send for DirichletProcessParams<G0, T>
impl<G0, T> Sync for DirichletProcessParams<G0, T>
impl<G0, T> Unpin for DirichletProcessParams<G0, T>where
G0: Unpin,
impl<G0, T> UnwindSafe for DirichletProcessParams<G0, T>where
G0: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more