[][src]Struct goko::plugins::discrete::tracker::KLDivergenceStats

pub struct KLDivergenceStats {
    pub max: f64,
    pub min: f64,
    pub nz_count: u64,
    pub moment1_nz: f64,
    pub moment2_nz: f64,
    pub sequence_len: usize,
}

Tracks the non-zero KL div (all KL divergences above 1e-10)

Fields

max: f64

The maximum non-zero KL divergence

min: f64

The minimum non-zero KL divergence

nz_count: u64

The number of nodes that have a non-zero divergence

moment1_nz: f64

The first moment, use this with the nz_count to get the mean

moment2_nz: f64

The second moment, use this with the nz_count and first moment to get the variance

sequence_len: usize

The number of sequence elements that went into calculating this stat. This is not the total lenght We can drop old sequence elements

Trait Implementations

impl Debug for KLDivergenceStats[src]

impl<'de> Deserialize<'de> for KLDivergenceStats[src]

impl Serialize for KLDivergenceStats[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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