Proposal
Simple
- class stonesoup.proposal.simple.PriorAsProposal(transition_model: TransitionModel)[source]
Bases:
Proposal
Proposal that uses the dynamics model as the importance density. This proposal uses the dynamics model to predict the next state, and then uses the predicted state as the prior for the measurement model.
- Parameters:
transition_model (
TransitionModel
) – The transition model used to make the prediction
- transition_model: TransitionModel
The transition model used to make the prediction
- rvs(prior: State, measurement=None, time_interval=None, **kwargs) StateVector | StateVectors [source]
Generate samples from the proposal.
- Parameters:
- Returns:
State with samples drawn from the updated proposal
- Return type:
ParticlePrediction
- class stonesoup.proposal.simple.KFasProposal(predictor: Predictor, updater: Updater)[source]
Bases:
Proposal
This proposal uses the Kalman filter prediction and update steps to generate new set of particles and weights
- Parameters:
- rvs(prior: State, measurement: Detection = None, time_interval=None, **kwargs)[source]
Generate samples from the proposal.
Use the Kalman filter predictor and updater to create a new distribution
- Parameters:
- Returns:
State with samples drawn from the updated proposal
- Return type:
ParticlePrediction