FIMS  v0.8.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"
13#include "../../../common/fims_vector.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 }
46 virtual std::map<std::string, fims::Vector<Type>>
48 std::map<std::string, fims::Vector<Type>> report_vectors;
49 return report_vectors;
50 }
51};
52
53} // namespace fims_popdy
54
55#endif /* FIMS_POPULATION_DYNAMICS_RECRUITMENT_LOG_DEVS_HPP */
The population dynamics of FIMS.
Definition catch_at_age.hpp:41
void clear_internal()
Clears the internal objects.
Definition rcpp_interface.hpp:279
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 std::map< std::string, fims::Vector< Type > > create_report_vectors_map()
Create a map of report vectors for the recruitment object.
Definition log_devs.hpp:47
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)
Definition log_devs.hpp:40
Base class for all recruitment functors.
Definition recruitment_base.hpp:28
std::shared_ptr< fims_popdy::RecruitmentBase< Type > > recruitment
Definition recruitment_base.hpp:49