![]() |
FIMS
v0.10.0
|
Base interface for objects that provide population-level size distributions. More...
#include <size_distribution_provider_base.hpp>
Public Member Functions | |
| virtual const SizeGrid * | TryGetSizeGrid () const =0 |
| Return the biological size grid used by this provider. | |
| virtual void | SetPopulationSizeGrid (const SizeGrid *size_grid)=0 |
| Configure the provider to use the canonical population size grid. | |
| virtual void | SetPopulationDimensions (std::size_t n_years, std::size_t n_ages)=0 |
| Configure the provider dimensions for prepared size products. | |
| virtual void | PrepareSizeProducts ()=0 |
| Prepare size products for the current model state. | |
| virtual void | InvalidatePreparedSizeProducts ()=0 |
| Invalidate any prepared size state held by this provider. | |
| virtual const Type & | MeanLAA (std::size_t year_index, std::size_t age_index) const =0 |
| Read prepared mean length-at-age. | |
| virtual const Type & | SdLAA (std::size_t year_index, std::size_t age_index) const =0 |
| Read prepared spread of length-at-age. | |
| virtual const Type & | ProbSize (std::size_t year_index, std::size_t age_index, std::size_t size_bin_index) const =0 |
| Read prepared age-to-size probability on the population grid. | |
Base interface for objects that provide population-level size distributions.
Implementations of this interface prepare and expose pooled population-level size products on a biological size grid. The interface is intentionally separate from catch-at-age so other FIMS modules can consume size products without depending on CAA-specific logic.
| Type | Numeric type used for prepared size products. |
|
pure virtual |
Invalidate any prepared size state held by this provider.
This is called when upstream biological inputs or the canonical population size grid change and previously prepared size products should no longer be reused.
Implemented in fims_popdy::GrowthDerivedSizeProvider< Type >.
|
pure virtual |
Read prepared mean length-at-age.
| year_index | Year index. |
| age_index | Age index. |
Implemented in fims_popdy::GrowthDerivedSizeProvider< Type >.
|
pure virtual |
Prepare size products for the current model state.
Implemented in fims_popdy::GrowthDerivedSizeProvider< Type >.
|
pure virtual |
Read prepared age-to-size probability on the population grid.
| year_index | Year index. |
| age_index | Age index. |
| size_bin_index | Size-bin index. |
Implemented in fims_popdy::GrowthDerivedSizeProvider< Type >.
|
pure virtual |
Read prepared spread of length-at-age.
| year_index | Year index. |
| age_index | Age index. |
Implemented in fims_popdy::GrowthDerivedSizeProvider< Type >.
|
pure virtual |
Configure the provider dimensions for prepared size products.
| n_years | Number of modeled years represented. |
| n_ages | Number of modeled ages represented. |
Providers use these dimensions together with the canonical population size grid to size any prepared population-level size products.
Implemented in fims_popdy::GrowthDerivedSizeProvider< Type >.
|
pure virtual |
Configure the provider to use the canonical population size grid.
| size_grid | Canonical population-level biological size grid. |
Providers should prepare any grid-based size products on this grid rather than creating an independent biological size definition.
Implemented in fims_popdy::GrowthDerivedSizeProvider< Type >.
|
pure virtual |
Return the biological size grid used by this provider.
Implemented in fims_popdy::GrowthDerivedSizeProvider< Type >.