![]() |
FIMS
v0.8.1
|
Base class for all recruitment functors. More...
#include <recruitment_base.hpp>
Public Member Functions | |
| RecruitmentBase () | |
| Constructor. | |
| void | Prepare () |
| Prepares the recruitment deviations vector. | |
| virtual const Type | evaluate_mean (const Type &spawners, const Type &ssbzero)=0 |
| Calculates the expected recruitment for a given spawning input. | |
| virtual const Type | evaluate_process (size_t pos)=0 |
| Handle error in recruitment. | |
| void | PrepareConstrainedDeviations () |
| Prepare constrained recruitment deviations. Based on ADMB sum-to-zero constraint implementation. We still need to add an additional penalty to the PrepareConstrainedDeviations method. More discussion can be found here: https://groups.google.com/a/ADMB-project.org/g/users/c/63YJmYGEPuE. | |
Public Member Functions inherited from fims_model_object::FIMSObject< Type > | |
| 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. | |
Public Attributes | |
| fims::Vector< Type > | log_recruit_devs |
| bool | constrain_deviations = false |
| fims::Vector< Type > | log_rzero |
| fims::Vector< Type > | log_r |
| fims::Vector< Type > | log_expected_recruitment |
| bool | estimate_log_recruit_devs = true |
| int | process_id = -999 |
| std::shared_ptr< fims_popdy::RecruitmentBase< Type > > | process |
| std::shared_ptr< fims_popdy::RecruitmentBase< Type > > | recruitment |
Public Attributes inherited from fims_model_object::FIMSObject< Type > | |
| uint32_t | id |
| std::vector< Type * > | parameters |
| std::vector< Type * > | random_effects_parameters |
| std::vector< Type * > | fixed_effects_parameters |
Static Public Attributes | |
| static uint32_t | id_g = 0 |
Base class for all recruitment functors.
| Type | The type of the recruitment functor. |
|
pure virtual |
Calculates the expected recruitment for a given spawning input.
| spawners | A measure for spawning output. |
| ssbzero | A measure for spawning output in unfished population. |
Implemented in fims_popdy::LogDevs< Type >, fims_popdy::LogR< Type >, and fims_popdy::SRBevertonHolt< Type >.
Handle error in recruitment.
| pos | Position index, e.g., which year. |
Implemented in fims_popdy::LogDevs< Type >, fims_popdy::LogR< Type >, and fims_popdy::SRBevertonHolt< Type >.
A flag to indicate if recruitment deviations are summing to zero or not
A flag to indicate if recruitment deviations are estimated or not
|
static |
reference id for recruitment object
| fims::Vector<Type> fims_popdy::RecruitmentBase< Type >::log_expected_recruitment |
Expectation of the recruitment process
| fims::Vector<Type> fims_popdy::RecruitmentBase< Type >::log_r |
Natural log of recruitment used for random effects
| fims::Vector<Type> fims_popdy::RecruitmentBase< Type >::log_recruit_devs |
A vector of the natural log of recruitment deviations
| fims::Vector<Type> fims_popdy::RecruitmentBase< Type >::log_rzero |
Natural log of unexploited recruitment.
| std::shared_ptr<fims_popdy::RecruitmentBase<Type> > fims_popdy::RecruitmentBase< Type >::process |
shared pointer to recruitment processmodule
| int fims_popdy::RecruitmentBase< Type >::process_id = -999 |
id of recruitment process model object
| std::shared_ptr<fims_popdy::RecruitmentBase<Type> > fims_popdy::RecruitmentBase< Type >::recruitment |
shared pointer to recruitment module