9#ifndef FIMS_POPULATION_DYNAMICS_FLEET_HPP
10#define FIMS_POPULATION_DYNAMICS_FLEET_HPP
38 std::shared_ptr<SelectivityBase<Type>>
42 std::shared_ptr<AgeToLengthConversionBase<Type>>
51 std::shared_ptr<fims_data_object::DataObject<Type>>
58 std::shared_ptr<fims_data_object::DataObject<Type>>
65 std::shared_ptr<fims_data_object::DataObject<Type>>
70 std::shared_ptr<fims_data_object::DataObject<Type>>
107 for (
size_t i = 0;
i < this->
log_q.size();
i++) {
108 this->
q[
i] = fims_math::exp(this->
log_q[
i]);
Declares the AgeToLengthConversionBase class which is the base class for all age-length key functors.
Definition fims_vector.hpp:27
Sets up a data class to create a generic data object with up to five dimensions. The class contains i...
This distributions module includes any .hpp files within the subfolders so that only this file needs ...
Establishes the FIMS Vector class.
Definition of the FIMSObject structure.
The population dynamics of FIMS.
Definition catch_at_age.hpp:45
std::shared_ptr< AgeToLengthConversionBase< Type > > BuildAgeToLengthConversionFleet(const std::shared_ptr< Population< Type > > &population, const std::shared_ptr< Fleet< Type > > &fleet)
Build the active age-to-length conversion for a fleet from the current population and fleet state.
Definition runtime.hpp:44
Includes any .hpp files within the subfolders so that only this file needs to included in include sta...
void register_self(const uint32_t id)
Registers a FIMSObject instance with the memory tracker.
Definition model_object.hpp:35
FIMSObject struct that defines member types and returns the unique id.
Definition model_object.hpp:55
Base class for all fleets.
Definition fleet.hpp:26
Fleet()
Constructor.
Definition fleet.hpp:88
fims::Vector< Type > log_q
Definition fleet.hpp:77
std::shared_ptr< SelectivityBase< Type > > selectivity
Definition fleet.hpp:39
static uint32_t id_g
Definition fleet.hpp:27
int fleet_observed_lengthcomp_data_id_m
Definition fleet.hpp:69
std::string observed_catch_units
Definition fleet.hpp:54
int fleet_selectivity_id_m
Definition fleet.hpp:37
std::shared_ptr< fims_data_object::DataObject< Type > > observed_agecomp_data
Definition fleet.hpp:66
size_t n_years
Definition fleet.hpp:28
int fleet_observed_agecomp_data_id_m
Definition fleet.hpp:64
std::shared_ptr< fims_data_object::DataObject< Type > > observed_index_data
Definition fleet.hpp:59
fims::Vector< Type > Fmort
Definition fleet.hpp:79
void Prepare()
Prepare to run the fleet module. Called at each model iteration, and used to exponentiate the natural...
Definition fleet.hpp:103
size_t n_ages
Definition fleet.hpp:29
virtual ~Fleet()
Destructor.
Definition fleet.hpp:95
bool requires_age_length_mapping
Definition fleet.hpp:45
fims::Vector< Type > q
Definition fleet.hpp:81
std::shared_ptr< fims_data_object::DataObject< Type > > observed_lengthcomp_data
Definition fleet.hpp:71
fims::Vector< Type > age_to_length_conversion
Definition fleet.hpp:83
int fleet_observed_index_data_id_m
Definition fleet.hpp:57
std::shared_ptr< AgeToLengthConversionBase< Type > > age_to_length_conversion_model
Definition fleet.hpp:43
fims::Vector< Type > log_Fmort
Definition fleet.hpp:75
std::shared_ptr< fims_data_object::DataObject< Type > > observed_catch_data
Definition fleet.hpp:52
fims::Vector< double > length_bin_edges
Definition fleet.hpp:34
fims::Vector< double > lengths
Definition fleet.hpp:32
size_t n_lengths
Definition fleet.hpp:30
int fleet_observed_catch_data_id_m
Definition fleet.hpp:50
std::string observed_index_units
Definition fleet.hpp:61