-
- Downloads
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.
Showing
- doc/api/check.rst 0 additions, 8 deletionsdoc/api/check.rst
- doc/api/index.rst 0 additions, 3 deletionsdoc/api/index.rst
- doc/api/state.rst 8 additions, 0 deletionsdoc/api/state.rst
- src/pypfilt/cache.py 1 addition, 1 deletionsrc/pypfilt/cache.py
- src/pypfilt/check.py 0 additions, 43 deletionssrc/pypfilt/check.py
- src/pypfilt/config.py 2 additions, 7 deletionssrc/pypfilt/config.py
- src/pypfilt/context.py 4 additions, 3 deletionssrc/pypfilt/context.py
- src/pypfilt/examples/predation.py 5 additions, 4 deletionssrc/pypfilt/examples/predation.py
- src/pypfilt/model.py 1 addition, 1 deletionsrc/pypfilt/model.py
- src/pypfilt/obs.py 5 additions, 5 deletionssrc/pypfilt/obs.py
- src/pypfilt/params.py 5 additions, 9 deletionssrc/pypfilt/params.py
- src/pypfilt/pfilter.py 24 additions, 29 deletionssrc/pypfilt/pfilter.py
- src/pypfilt/resample.py 67 additions, 57 deletionssrc/pypfilt/resample.py
- src/pypfilt/state.py 128 additions, 29 deletionssrc/pypfilt/state.py
- src/pypfilt/summary.py 12 additions, 8 deletionssrc/pypfilt/summary.py
- tests/test_resample.py 24 additions, 3 deletionstests/test_resample.py
Loading
Please register or sign in to comment