[][src]Struct grandma::plugins::distributions::DirichletBaseline

pub struct DirichletBaseline<D: PointCloud> { /* fields omitted */ }

Trains a baseline by sampling randomly from the training set (used to create the tree) This baseline is not realistic.

Implementations

impl<D: PointCloud> DirichletBaseline<D>[src]

pub fn new(reader: CoverTreeReader<D>) -> DirichletBaseline<D>[src]

New with sensible defaults

pub fn set_sequence_len(&mut self, sequence_len: usize)[src]

Sets a new training sequence window_size, default 200. Stats for each total lenght of sequence are returned

pub fn set_num_sequences(&mut self, num_sequences: usize)[src]

Sets a new count of sequences to train over, default 100. Stats for each sequence are returned.

pub fn set_window_size(&mut self, window_size: usize)[src]

Sets a new maximum lenght of sequence, before it starts forgetting data, default 50

pub fn set_prior_weight(&mut self, prior_weight: f64)[src]

Sets a new prior weight, default 1.0. The prior is multiplied by this to increase or decrease it's importance

pub fn set_observation_weight(&mut self, observation_weight: f64)[src]

Sets a new observation weight, default 1.0. Each discrete observation is treated as having this value.

pub fn train(&self) -> GrandmaResult<Vec<Vec<KLDivergenceStats>>>[src]

Trains the sequences up.

Auto Trait Implementations

impl<D> !RefUnwindSafe for DirichletBaseline<D>

impl<D> Send for DirichletBaseline<D>

impl<D> !Sync for DirichletBaseline<D>

impl<D> Unpin for DirichletBaseline<D>

impl<D> UnwindSafe for DirichletBaseline<D> where
    D: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,