pub struct DirichletProcess {
pub concentration: f64,
pub base_distribution: String,
pub is_discrete: bool,
pub expected_clusters: f64,
}Fields§
§concentration: f64§base_distribution: String§is_discrete: bool§expected_clusters: f64Implementations§
Source§impl DirichletProcess
impl DirichletProcess
pub fn new(alpha: f64, base: &str) -> Self
pub fn expected_clusters_for_n(&self, n: usize) -> f64
pub fn stick_breaking_construction(&self) -> String
pub fn chinese_restaurant_process(&self, n: usize) -> String
pub fn posterior_update(&self, n_obs: usize) -> Self
Trait Implementations§
Source§impl Clone for DirichletProcess
impl Clone for DirichletProcess
Source§fn clone(&self) -> DirichletProcess
fn clone(&self) -> DirichletProcess
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DirichletProcess
impl RefUnwindSafe for DirichletProcess
impl Send for DirichletProcess
impl Sync for DirichletProcess
impl Unpin for DirichletProcess
impl UnsafeUnpin for DirichletProcess
impl UnwindSafe for DirichletProcess
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