[−][src]Struct bio::stats::hmm::univariate_continuous_emission::Model
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]
transition: Array2<LogProb>,
observation: Vec<Dist>,
initial: Array1<LogProb>
) -> Result<Self, HMMError>
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]
transition: &Array2<Prob>,
observation: Vec<Dist>,
initial: &Array1<Prob>
) -> Result<Self, HMMError>
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]
transition: &Array2<f64>,
observation: Vec<Dist>,
initial: &Array1<f64>
) -> Result<Self, HMMError>
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 num_states(&self) -> usize
[src]
ⓘImportant traits for StateIterfn states(&self) -> StateIter
[src]
ⓘImportant traits for StateTransitionIterfn transitions(&self) -> StateTransitionIter
[src]
fn transition_prob(&self, from: State, to: State) -> LogProb
[src]
fn initial_prob(&self, state: State) -> LogProb
[src]
fn observation_prob(&self, state: State, observation: &f64) -> LogProb
[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,
Dist: Send,
impl<Dist> Unpin for Model<Dist> where
Dist: Unpin,
Dist: Unpin,
impl<Dist> Sync for Model<Dist> where
Dist: Sync,
Dist: Sync,
impl<Dist> UnwindSafe for Model<Dist> where
Dist: UnwindSafe,
Dist: UnwindSafe,
impl<Dist> RefUnwindSafe for Model<Dist> where
Dist: RefUnwindSafe,
Dist: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,