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

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

Computes a frequentist KL divergence calculation on each node the sequence touches.

Implementations

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

pub fn new(
    prior_weight: f64,
    observation_weight: f64,
    window_size: usize,
    reader: CoverTreeReader<D>
) -> BayesCategoricalTracker<D>
[src]

Creates a new blank thing with capacity size, input 0 for unlimited.

pub fn reader(&self) -> &CoverTreeReader<D>[src]

Accessor for the reader associated to this tracker

Trait Implementations

impl<D: PointCloud> Debug for BayesCategoricalTracker<D>[src]

impl<D: PointCloud> DiscreteBayesianSequenceTracker<D> for BayesCategoricalTracker<D>[src]

type Distribution = Dirichlet

The. underlying distribution that this is tracking.

fn add_dry_insert(&mut self, trace: Vec<(f32, NodeAddress)>)[src]

Adds an element to the trace

Auto Trait Implementations

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>,