10#ifndef FIMS_POPULATION_DYNAMICS_RECRUITMENT_SR_BEVERTON_HOLT_HPP
11#define FIMS_POPULATION_DYNAMICS_RECRUITMENT_SR_BEVERTON_HOLT_HPP
27template <
typename Type>
49 virtual const Type
evaluate_mean(
const Type& spawners,
const Type& phi_0) {
52 Type steep_lo =
static_cast<Type
>(0.2);
53 Type steep_hi =
static_cast<Type
>(1.0);
58 rzero = fims_math::exp(this->
log_rzero[0]);
60 recruits = (
static_cast<Type
>(0.8) * rzero * steep * spawners) /
61 (
static_cast<Type
>(0.2) * phi_0 * rzero *
62 (
static_cast<Type
>(1.0) - steep) +
63 spawners * (steep -
static_cast<Type
>(0.2)));
Definition fims_vector.hpp:27
const Type inv_logit(const Type &a, const Type &b, const Type &logit_x)
An inverse logit function for bounding of parameters.
Definition fims_math.hpp:276
Establishes the FIMS Vector class.
The population dynamics of FIMS.
Definition catch_at_age.hpp:45
Serves as the parent class where recruitment functions are called.
fims::Vector< Type > log_rzero
Definition recruitment_base.hpp:35
RecruitmentBase()
Constructor.
Definition recruitment_base.hpp:52
BevertonHolt class that returns the Beverton–Holt stock–recruitment from fims_math.
Definition sr_beverton_holt.hpp:28
fims::Vector< Type > logit_steep
Definition sr_beverton_holt.hpp:33
virtual const Type evaluate_process(size_t pos)
Definition sr_beverton_holt.hpp:71
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 sr_beverton_holt.hpp:49