Struct bayes_estimate::estimators::sir::SampleState[][src]

pub struct SampleState<N: RealField, D: Dim> where
    DefaultAllocator: Allocator<N, D>, 
{ pub s: Samples<N, D>, pub w: Likelihoods, pub rng: Box<dyn RngCore>, }
Expand description

Sample state.

State distribution is represented as state samples and their likelihood.

Fields

s: Samples<N, D>

State samples

w: Likelihoods

and their likelihoods (bootstrap weights)

rng: Box<dyn RngCore>

A PRNG use to draw random samples

Implementations

Creates a SampleState with equal likelihood weights.

Predict sample state using a state prediction function ‘f’.

Predict sample state using a sampled state prediction function ‘f’. The sampling function should predict the state and sample any noise.

Observe sample likehoods using a likelihood function ‘l’. The sample likelihoods are multiplied by the observed likelihoods.

Observe sample likehoods directly. The sample likelihoods are multiplied by these likelihoods.

Resample using likelihoods and roughen the sample state. Error returns: When the resampler fails due to numeric problems with the likelihoods Returns: number of unique samples, smallest normalised likelohood, to determine numerical conditioning of likehoods

Trait Implementations

The estimator’s estimate of the system’s state.

Initialise the estimator with a KalmanState.

The estimator’s estimate of the system’s KalmanState.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.