|
|
typedef std::map< std::string, fims::Vector< Type > >::iterator | derived_quantities_iterator |
| | Iterate the derived quantities.
|
| |
|
typedef std::map< uint32_t, std::map< std::string, fims::Vector< Type > > >::iterator | fleet_derived_quantities_iterator |
| | Used to iterate through fleet-based derived quantities.
|
| |
|
typedef std::map< uint32_t, std::map< std::string, fims::Vector< size_t > > >::iterator | fleet_derived_quantities_dims_iterator |
| | Used to iterate through fleet-based derived quantities dimensions.
|
| |
|
typedef std::map< uint32_t, std::map< std::string, fims::Vector< Type > > >::iterator | population_derived_quantities_iterator |
| | Used to iterate through population-based derived quantities.
|
| |
|
typedef std::map< uint32_t, std::map< std::string, fims::Vector< size_t > > >::iterator | population_derived_quantities_dims_iterator |
| | Used to iterate through population-based derived quantities dimensions.
|
| |
|
typedef std::map< uint32_t, std::shared_ptr< fims_popdy::Fleet< Type > > >::iterator | fleet_iterator |
| | Iterate through fleets.
|
| |
|
typedef std::map< std::string, fims::Vector< Type > >::iterator | dq_iterator |
| | Iterate through derived quantities.
|
| |
|
typedef std::map< uint32_t, std::shared_ptr< fims_popdy::Fleet< Type > > >::iterator | fleet_iterator |
| | Fleet-based iterator.
|
| |
|
typedef std::map< uint32_t, std::map< std::string, fims::Vector< Type > > > | DerivedQuantitiesMap |
| | Type definitions for derived quantities and dimension information maps.
|
| |
|
typedef DerivedQuantitiesMap::iterator | DerivedQuantitiesMapIterator |
| | Iterator for the derived quantities map.
|
| |
|
typedef std::map< uint32_t, std::map< std::string, DimensionInfo > > | DimensionInfoMap |
| | Type definitions for dimension information maps.
|
| |
|
| | CatchAtAge () |
| |
| | CatchAtAge (const CatchAtAge &other) |
| | Copy constructor for the CatchAtAge class.
|
| |
|
virtual | ~CatchAtAge () |
| | Destroy the Catch At Age object.
|
| |
| virtual void | Initialize () |
| |
| virtual void | Prepare () |
| |
| void | AddPopulation (uint32_t id) |
| |
|
std::set< uint32_t > & | GetPopulationIds () |
| | Get the population ids of the model.
|
| |
| std::vector< std::shared_ptr< fims_popdy::Population< Type > > > & | GetPopulations () |
| |
| void | CalculateInitialNumbersAA (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t age) |
| | Calculates initial numbers at age for index and age.
|
| |
| void | CalculateNumbersAA (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t i_agem1_yearm1, size_t age) |
| | Calculates numbers at age for a population.
|
| |
| void | CalculateUnfishedNumbersAA (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t i_agem1_yearm1, size_t age) |
| | Calculates unfished numbers at age at year and age specific indices.
|
| |
| void | CalculateMortality (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t age) |
| | Calculates total mortality for a population.
|
| |
| void | CalculateBiomass (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t age) |
| | Calculates biomass for a population.
|
| |
| void | CalculateUnfishedBiomass (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t age) |
| | Calculates the unfished biomass for a population.
|
| |
| void | CalculateSpawningBiomass (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t age) |
| | Calculates spawning biomass for a population.
|
| |
| void | CalculateUnfishedSpawningBiomass (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t age) |
| | Calculated unfished spawning biomass for a population.
|
| |
| void | CalculateSpawningBiomassRatio (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t year) |
| | Calculate the spawning biomass ratio for a population and year.
|
| |
| Type | CalculateSBPR0 (std::shared_ptr< fims_popdy::Population< Type > > &population) |
| | Calculates equilibrium spawning biomass per recruit.
|
| |
| void | CalculateRecruitment (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t i_dev) |
| | Calculates expected recruitment for a population.
|
| |
| void | CalculateMaturityAA (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t age) |
| | Calculates maturity at age, in proportion, for a population.
|
| |
| void | CalculateLandings (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t year, size_t age) |
| | Calculates total catch (landings) by fleet and population for a given year by aggregating age-specific catch over ages.
|
| |
| void | CalculateLandingsWeightAA (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t year, size_t age) |
| | Calculates weight at age of the landings for a given fleet from a population.
|
| |
| void | CalculateLandingsNumbersAA (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t age) |
| | Calculates numbers of fish for the landings for a given fleet from a population, year and age.
|
| |
| void | CalculateIndex (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t age) |
| | Calculates the index for a fleet from a population.
|
| |
| void | CalculateIndexNumbersAA (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t i_age_year, size_t year, size_t age) |
| | Calculates the numbers for the index for a fleet from a population.
|
| |
| void | CalculateIndexWeightAA (std::shared_ptr< fims_popdy::Population< Type > > &population, size_t year, size_t age) |
| | Calculates biomass of fish for the index for a given fleet from a population.
|
| |
| void | evaluate_age_comp () |
| |
| void | evaluate_length_comp () |
| |
| void | evaluate_index () |
| |
| void | evaluate_landings () |
| |
| virtual void | Evaluate () |
| | Evaluate the model.
|
| |
| virtual void | Report () |
| |
|
| FisheryModelBase () |
| | Construct a new Fishery Model Base object.
|
| |
| | FisheryModelBase (const FisheryModelBase &other) |
| | Construct a new Fishery Model Base object.
|
| |
|
virtual | ~FisheryModelBase () |
| | Destroy the Fishery Model Base object.
|
| |
| std::map< uint32_t, std::map< std::string, DimensionInfo > > & | GetFleetDimensionInfo () |
| | Get the fleet dimension information.
|
| |
| std::map< uint32_t, std::map< std::string, DimensionInfo > > & | GetPopulationDimensionInfo () |
| | Get the population dimension information.
|
| |
| DerivedQuantitiesMap & | GetFleetDerivedQuantities () |
| | Get the fleet derived quantities.
|
| |
| DerivedQuantitiesMap & | GetPopulationDerivedQuantities () |
| | Get the population derived quantities.
|
| |
| std::map< std::string, fims::Vector< Type > > & | GetFleetDerivedQuantities (uint32_t fleet_id) |
| | Get the fleet derived quantities for a specified fleet.
|
| |
| void | InitializeFleetDerivedQuantities (uint32_t fleet_id) |
| | Initialize the derived quantities map for a fleet.
|
| |
| void | InitializePopulationDerivedQuantities (uint32_t population_id) |
| | Initialize the derived quantities map for a population.
|
| |
| std::map< std::string, fims::Vector< Type > > & | GetPopulationDerivedQuantities (uint32_t population_id) |
| | Get the population derived quantities for a specified population.
|
| |
| std::map< std::string, DimensionInfo > & | GetFleetDimensionInfo (uint32_t fleet_id) |
| | Get the fleet dimension information for a specified fleet.
|
| |
| std::map< std::string, DimensionInfo > & | GetPopulationDimensionInfo (uint32_t population_id) |
| | Get the population dimension information for a specified population.
|
| |
| virtual void | ResetVector (fims::Vector< Type > &v, Type value=0.0) |
| | Reset a vector from start to end with a value.
|
| |
| uint32_t | GetId () |
| | Get the Id object.
|
| |
|
uint32_t | GetId () const |
| | Getter that returns the unique id for parameters in the model.
|
| |
| bool | CheckDimensions (size_t actual, size_t expected) |
| | Check the dimensions of an object.
|
| |
|
|
std::string | name_m |
| | The name of the model.
|
| |
|
std::map< std::string, fims::Vector< fims::Vector< Type > > > | report_vectors |
| | A map of report vectors for the object. used to populate the report_vectors map in for submodule parameters.
|
| |
| std::vector< Type > | ages |
| |
|
std::string | model_type_m |
| | A string specifying the model type.
|
| |
|
std::set< uint32_t > | population_ids |
| | Unique identifier for the fishery model.
|
| |
|
std::vector< std::shared_ptr< fims_popdy::Population< Type > > > | populations |
| | A vector of populations in the fishery model.
|
| |
|
std::map< uint32_t, std::shared_ptr< fims_popdy::Fleet< Type > > > | fleets |
| | A map of fleets in the fishery model, indexed by fleet id. Unique instances to eliminate duplicate initialization.
|
| |
|
std::shared_ptr< DerivedQuantitiesMap > | fleet_derived_quantities |
| | Shared pointer for the fleet derived quantities map.
|
| |
|
std::shared_ptr< DerivedQuantitiesMap > | population_derived_quantities |
| | Shared pointer for the population derived quantities map.
|
| |
|
std::shared_ptr< DimensionInfoMap > | fleet_dimension_info |
| | Shared pointer for the fleet dimension information map.
|
| |
|
std::shared_ptr< DimensionInfoMap > | population_dimension_info |
| | Shared pointer for the population dimension information map.
|
| |
| uint32_t | id |
| |
| std::vector< Type * > | parameters |
| |
| std::vector< Type * > | random_effects_parameters |
| |
| std::vector< Type * > | fixed_effects_parameters |
| |
template<
typename Type>
class fims_popdy::CatchAtAge< Type >
CatchAtAge is a class containing a catch-at-age model, which is just one of many potential fishery models that can be used in FIMS. The CatchAtAge class inherits from the FisheryModelBase class and can be used to fit both age and length data even though it is called CatchAtAge.
See the Glossary for definitions of mathematical symbols used below.
Calculates the numbers for the index for a fleet from a population.
This function calculates the expected index in numbers at age for each fleet, using catchability, selectivity, and population numbers at age:
\[
IN_{f,a,y} \mathrel{+}= q_{f,y} \times S_f(a) \times N_{a,y}
\]
When timing is accounted for within FIMS the equation will include the fraction of the year when the survey was conducted \(t_y\):
\[ IN_{f,a,y} \mathrel{+}= S_{f,y}(a) \times N_{a,y} \times
e^{(-t_{y}Z_{a,y})}\]
- Parameters
-
| population | Shared pointer to the population object. |
- Parameters
-
| i_age_year | Dimension folded index for age and year. |
- Parameters
-
- Parameters
-
Calculates total mortality for a population.
This function calculates total mortality \(Z\) for a specific age and year, combining natural mortality \(M\) and fishing mortality \(F\) from all fleets.
The fishing mortality \(F_{f,a,y}\) for each fleet \(f\) is computed using age-specific selectivity \(S_f(a)\), fleet-specific annual fishing mortality \(F_{f,y}\), and year-specific F multiplier \(f_y\):
\[
F_{f,a,y} = F_{f,y} \times f_y \times S_f(a)
\]
Total fishing mortality at age \(a\) and year \(y\) is the sum over fleets:
\[
F_{a,y} = \sum_{f=1}^{N_{fleets}} F_{f,a,y}
\]
Total mortality \(Z_{a,y}\) is the sum of natural and fishing mortality:
\[
Z_{a,y} = M_{a,y} + F_{a,y}
\]
- Parameters
-
| population | Shared pointer to the population object. |
- Parameters
-
| i_age_year | Dimension folded index for age and year. |
- Parameters
-
- Parameters
-
Calculates equilibrium spawning biomass per recruit.
This function calculates the spawning biomass per recruit \(\phi_0\) at equilibrium, assuming an unfished stock. The biomass is calculated as the sum of the biomass contributions from each age \(a\):
\[
\phi_0 = \sum_{a=0}^{A} N_a \times p_{female,a} \times p_{mature,a} \times
w_a
\]
The numbers at age \(N_a\) are calculated recursively with natural mortality:
\[ N_a = N_{a-1} \times \exp(-M_a) \quad \text{for } a = 1,
\ldots, A-1 \]
Plus group update:
\[
N_A = \frac{N_{A-1} \times \exp(-M_{A-1})}{1 - \exp(-M_A)}
\]
- Parameters
-
| population | Shared pointer to the population object. |
- Returns
- Type
Calculates unfished numbers at age at year and age specific indices.
This function computes unfished numbers at age by applying survival through time using only natural mortality, without any fishing pressure. It also accounts for accumulation of the plus group.
Standard update:
\[
N^U_{a,y} = N^U_{a-1,y-1} \exp(-M_{a-1,y-1})
\]
Plus group update (if \(a = A\)):
\[
N^U_{A,y} = N^U_{A-1,y-1} \exp(-M_{A-1,y-1}) + N^U_{A,y-1} \exp(-M_{A,y-1})
\]
- Parameters
-
| population | Shared pointer to the population object. |
- Parameters
-
| i_age_year | Dimension folded index for age and year. |
- Parameters
-
| i_agem1_yearm1 | Dimension folded index for age-1 and year-1. |
- Parameters
-