Skip to content
Snippets Groups Projects
Commit f4c05cfd authored by Rob Moss's avatar Rob Moss
Browse files

Use structured particle history matrices

We now use nested data types to explicitly describe the matrix structure
and to avoid using magic numbers to select specific columns.

The top-level fields are:

* weight: the particle weights;
* prev_ix: the parent indices;
* state_vec: the particle state vectors; and
* lookup: sample indices for lookup tables (if required).

A further aim is to allow models to specify the state vector data type,
including the ability to have named fields and non-scalar entries.

In general, simulation models should only have access to state vectors,
while observation models and summary tables should have access to the
full matrix.
parent f623b349
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment