FIMS  v0.9.3
Loading...
Searching...
No Matches
log_r.hpp
Go to the documentation of this file.
1
9#ifndef FIMS_POPULATION_DYNAMICS_RECRUITMENT_LOG_R_HPP
10#define FIMS_POPULATION_DYNAMICS_RECRUITMENT_LOG_R_HPP
11
12#include "recruitment_base.hpp"
14
15namespace fims_popdy {
16
20template <typename Type>
21struct LogR : public RecruitmentBase<Type> {
23
24 virtual ~LogR() {}
25
34 virtual const Type evaluate_process(size_t pos) {
35 return this->recruitment->log_r[pos];
36 }
37
39 virtual const Type evaluate_mean(const Type& spawners, const Type& phi_0) {
40 return 0;
41 }
42};
43
44} // namespace fims_popdy
45
46#endif /* FIMS_POPULATION_DYNAMICS_RECRUITMENT_LOG_R_HPP */
Establishes the FIMS Vector class.
The population dynamics of FIMS.
Definition catch_at_age.hpp:41
void clear_internal()
Clears the internal objects.
Definition rcpp_interface.hpp:235
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_r.hpp:21
virtual const Type evaluate_process(size_t pos)
Log of recruitment approach to adding error to expected recruitment.
Definition log_r.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_r.hpp:39
Base class for all recruitment functors.
Definition recruitment_base.hpp:27
std::shared_ptr< fims_popdy::RecruitmentBase< Type > > recruitment
Definition recruitment_base.hpp:48