[−][src]Struct grandma::plugins::distributions::BayesCategoricalTracker
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]
prior_weight: f64,
observation_weight: f64,
window_size: usize,
reader: CoverTreeReader<D>
) -> BayesCategoricalTracker<D>
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
fn running_distributions(&self) -> &HashMap<NodeAddress, Dirichlet>
[src]
fn tree_reader(&self) -> &CoverTreeReader<D>
[src]
fn sequence_len(&self) -> usize
[src]
fn current_stats(&self) -> KLDivergenceStats
[src]
fn all_node_kl(&self) -> Vec<(f64, NodeAddress)>
[src]
Auto Trait Implementations
impl<D> !RefUnwindSafe for BayesCategoricalTracker<D>
impl<D> Send for BayesCategoricalTracker<D>
impl<D> !Sync for BayesCategoricalTracker<D>
impl<D> Unpin for BayesCategoricalTracker<D>
impl<D> UnwindSafe for BayesCategoricalTracker<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,