Struct bio::stats::hmm::discrete_emission::Model[][src]

pub struct Model { /* fields omitted */ }

Implementation of a hmm::Model with emission values from discrete distributions.

Log-scale probabilities are used for numeric stability.

In Rabiner’s tutorial, a discrete emission value HMM has N states and M output symbols. The state transition matrix with dimensions NxN is A, the observation probability distribution is the matrix B with dimensions NxM and the initial state distribution pi has length N.

Implementations

impl Model[src]

pub fn new(
    transition: Array2<LogProb>,
    observation: Array2<LogProb>,
    initial: Array1<LogProb>
) -> Result<Self>
[src]

Construct new Hidden MarkovModel with the given transition, observation, and initial state matrices and vectors already in log-probability space.

pub fn with_prob(
    transition: &Array2<Prob>,
    observation: &Array2<Prob>,
    initial: &Array1<Prob>
) -> Result<Self>
[src]

Construct new Hidden MarkovModel with the given transition, observation, and initial state matrices and vectors already as Prob values.

pub fn with_float(
    transition: &Array2<f64>,
    observation: &Array2<f64>,
    initial: &Array1<f64>
) -> Result<Self>
[src]

Construct new Hidden MarkovModel with the given transition, observation, and initial state matrices and vectors with probabilities as f64 values.

Trait Implementations

impl Debug for Model[src]

impl Model<usize> for Model[src]

impl PartialEq<Model> for Model[src]

impl StructuralPartialEq for Model[src]

Auto Trait Implementations

impl RefUnwindSafe for Model

impl Send for Model

impl Sync for Model

impl Unpin for Model

impl UnwindSafe for Model

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> From<T> for T[src]

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

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