Struct bio::stats::bayesian::model::ModelInstance[][src]

pub struct ModelInstance<Event, PosteriorEvent> where
    Event: Hash + Eq,
    PosteriorEvent: Hash + Eq
{ /* fields omitted */ }

Instance of a model for given data and event universe. From the instance, posterior, marginal and MAP can be computed.

Implementations

impl<Event, PosteriorEvent> ModelInstance<Event, PosteriorEvent> where
    Event: Hash + Eq,
    PosteriorEvent: Hash + Eq
[src]

pub fn posterior(&self, event: &PosteriorEvent) -> Option<LogProb>[src]

Posterior probability of given event.

pub fn marginal(&self) -> LogProb[src]

Marginal probability.

pub fn maximum_posterior(&self) -> Option<&Event>[src]

Maximum a posteriori estimate.

impl<PosteriorEvent> ModelInstance<NotNan<f64>, PosteriorEvent> where
    PosteriorEvent: Hash + Eq
[src]

pub fn expected_value(&self) -> NotNan<f64>[src]

Auto Trait Implementations

impl<Event, PosteriorEvent> RefUnwindSafe for ModelInstance<Event, PosteriorEvent> where
    Event: RefUnwindSafe,
    PosteriorEvent: RefUnwindSafe

impl<Event, PosteriorEvent> Send for ModelInstance<Event, PosteriorEvent> where
    Event: Send,
    PosteriorEvent: Send

impl<Event, PosteriorEvent> Sync for ModelInstance<Event, PosteriorEvent> where
    Event: Sync,
    PosteriorEvent: Sync

impl<Event, PosteriorEvent> Unpin for ModelInstance<Event, PosteriorEvent> where
    Event: Unpin,
    PosteriorEvent: Unpin

impl<Event, PosteriorEvent> UnwindSafe for ModelInstance<Event, PosteriorEvent> where
    Event: UnwindSafe,
    PosteriorEvent: UnwindSafe

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