Struct opensrdk_probability::nonparametric::point_process::dirichlet_process::stick_breaking_process::StickBreakingProcessParams
source · pub struct StickBreakingProcessParams { /* private fields */ }Implementations
sourceimpl StickBreakingProcessParams
impl StickBreakingProcessParams
pub fn new(alpha: f64) -> Result<Self, DistributionError>
Trait Implementations
sourceimpl Clone for StickBreakingProcessParams
impl Clone for StickBreakingProcessParams
sourcefn clone(&self) -> StickBreakingProcessParams
fn clone(&self) -> StickBreakingProcessParams
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 Debug for StickBreakingProcessParams
impl Debug for StickBreakingProcessParams
sourceimpl RandomVariable for StickBreakingProcessParams
impl RandomVariable for StickBreakingProcessParams
type RestoreInfo = ()
fn transform_vec(&self) -> (Vec<f64>, Self::RestoreInfo)
fn len(&self) -> usize
fn restore(
v: &[f64],
info: &Self::RestoreInfo
) -> Result<Self, DistributionError>
Auto Trait Implementations
impl RefUnwindSafe for StickBreakingProcessParams
impl Send for StickBreakingProcessParams
impl Sync for StickBreakingProcessParams
impl Unpin for StickBreakingProcessParams
impl UnwindSafe for StickBreakingProcessParams
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