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

pub struct Model<Dist: Continuous<f64, f64>> { /* fields omitted */ }

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

Log-scale probabilities are used for numeric stability.

Methods

impl<Dist: Continuous<f64, f64>> Model<Dist>[src]

pub fn new(
    transition: Array2<LogProb>,
    observation: Vec<Dist>,
    initial: Array1<LogProb>
) -> Result<Self, HMMError>
[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: Vec<Dist>,
    initial: &Array1<Prob>
) -> Result<Self, HMMError>
[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: Vec<Dist>,
    initial: &Array1<f64>
) -> Result<Self, HMMError>
[src]

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

Trait Implementations

impl<Dist: Continuous<f64, f64>> Model<f64> for Model<Dist>[src]

fn transition_prob_idx(&self, from: State, to: State, _to_idx: usize) -> LogProb[src]

Transition probability between two states from and to for observation with index _to_idx (index of to). Read more

Auto Trait Implementations

impl<Dist> Send for Model<Dist> where
    Dist: Send

impl<Dist> Unpin for Model<Dist> where
    Dist: Unpin

impl<Dist> Sync for Model<Dist> where
    Dist: Sync

impl<Dist> UnwindSafe for Model<Dist> where
    Dist: UnwindSafe

impl<Dist> RefUnwindSafe for Model<Dist> where
    Dist: RefUnwindSafe

Blanket Implementations

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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