FIMS  v0.8.0
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"
13#include "../../../common/fims_vector.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 */
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_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)
Definition log_r.hpp:39
Base class for all recruitment functors.
Definition recruitment_base.hpp:28
std::shared_ptr< fims_popdy::RecruitmentBase< Type > > recruitment
Definition recruitment_base.hpp:49