|
|
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.
|
| |
|
typedef std::map< uint32_t, std::map< std::string, UncertaintyReportInfo > > | UncertaintyReportInfoMap |
| | Type definition for the uncertainty report information map.
|
| |
|
| | 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.
|
| |
|
UncertaintyReportInfoMap & | GetFleetUncertaintyReportInfo () |
| | Get the fleet uncertainty report information.
|
| |
|
UncertaintyReportInfoMap & | GetPopulationUncertaintyReportInfo () |
| | Get the population uncertainty report information.
|
| |
| std::map< std::string, UncertaintyReportInfo > & | GetFleetUncertaintyReportInfo (uint32_t fleet_id) |
| | Get the fleet uncertainty report information for a specified fleet.
|
| |
| std::map< std::string, UncertaintyReportInfo > & | GetPopulationUncertaintyReportInfo (uint32_t population_id) |
| | Get the population uncertainty report 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.
|
| |
| virtual void | create_report_vectors (std::map< std::string, fims::Vector< fims::Vector< Type > > > &report_vectors) |
| | Create a map of report vectors for the object. used to populate the report_vectors map in FisheryModelBase.
|
| |
| virtual void | get_report_vector_count (std::map< std::string, size_t > &report_vector_count) |
| | Get the report vector count object. used to get the length of each report vector for populating the UncertaintyReportInfo struct in FisheryModelBase.
|
| |
|
|
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.
|
| |
|
std::shared_ptr< UncertaintyReportInfoMap > | fleet_uncertainty_report_info |
| | Shared pointer for the uncertainty report information map.
|
| |
|
std::shared_ptr< UncertaintyReportInfoMap > | population_uncertainty_report_info |
| | Shared pointer for the population uncertainty report 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.
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
-