FIMS  v0.10.0
Loading...
Searching...
No Matches
log_devs.hpp
Go to the documentation of this file.
1
9#ifndef FIMS_POPULATION_DYNAMICS_RECRUITMENT_LOG_DEVS_HPP
10#define FIMS_POPULATION_DYNAMICS_RECRUITMENT_LOG_DEVS_HPP
11
12#include "recruitment_base.hpp"
14
15namespace fims_popdy {
16
20template <typename Type>
21struct LogDevs : public RecruitmentBase<Type> {
23
24 virtual ~LogDevs() {}
25
34 virtual const Type evaluate_process(size_t pos) {
35 return this->recruitment->log_expected_recruitment[pos] +
36 this->recruitment->log_recruit_devs[pos];
37 }
38
40 virtual const Type evaluate_mean(const Type& spawners, const Type& phi_0) {
41 return 0;
42 }
43};
44
45} // namespace fims_popdy
46
47#endif /* FIMS_POPULATION_DYNAMICS_RECRUITMENT_LOG_DEVS_HPP */
Establishes the FIMS Vector class.
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
Serves as the parent class where recruitment functions are called.
Log Devs class that returns the log of the input added to the log of the recruitment deviations.
Definition log_devs.hpp:21
virtual const Type evaluate_process(size_t pos)
Log of the recruitment deviations approach to adding error to expected recruitment.
Definition log_devs.hpp:34
virtual const Type evaluate_mean(const Type &spawners, const Type &phi_0)
Evaluates expected recruitment from the stock–recruitment relationship before recruitment-process dev...
Definition log_devs.hpp:40
Base class for all recruitment functors.
Definition recruitment_base.hpp:27
std::shared_ptr< fims_popdy::RecruitmentBase< Type > > recruitment
Definition recruitment_base.hpp:48