Rcpp interface for Beverton–Holt to instantiate from R: beverton_holt <- methods::new(beverton_holt).
More...
#include <rcpp_recruitment.hpp>
|
|
| BevertonHoltRecruitmentInterface () |
| | The constructor.
|
| |
| | BevertonHoltRecruitmentInterface (const BevertonHoltRecruitmentInterface &other) |
| | Construct a new Beverton–Holt Recruitment Interface object.
|
| |
|
virtual | ~BevertonHoltRecruitmentInterface () |
| | The destructor.
|
| |
| virtual uint32_t | get_id () |
| | Gets the ID of the interface base object.
|
| |
| void | SetRecruitmentProcessID (uint32_t process_id) |
| | Set the unique ID for the recruitment process object.
|
| |
| virtual double | evaluate_mean (double spawners, double phi_0) |
| | Evaluates expected recruitment from the stock–recruitment relationship before recruitment-process deviations are applied.
|
| |
| virtual double | evaluate_process (size_t pos) |
| | Evaluate recruitment process - returns 0 in this module.
|
| |
| virtual void | finalize () |
| | Extracts derived quantities back to the Rcpp interface object from the Information object.
|
| |
| virtual std::string | to_json () |
| | Converts the data to json representation for the output.
|
| |
|
| RecruitmentInterfaceBase () |
| | The constructor.
|
| |
| | RecruitmentInterfaceBase (const RecruitmentInterfaceBase &other) |
| | Construct a new Recruitment Interface Base object.
|
| |
|
virtual | ~RecruitmentInterfaceBase () |
| | The destructor.
|
| |
| virtual bool | add_to_fims_tmb () |
| | A virtual method to inherit to add objects to the TMB model.
|
| |
| std::string | value_to_string (double value) |
| | Report the variable value as a string.
|
| |
|
std::string | make_dimensions (uint32_t start, uint32_t end, uint32_t rep=1) |
| | Make a string of dimensions for the model.
|
| |
|
|
SharedInt | n_years |
| | The number of years.
|
| |
|
VariableVector | logit_steep |
| | The logistic transformation of steepness (h; productivity of the population), where the parameter is transformed to constrain it between 0.2 and 1.0.
|
| |
|
VariableVector | log_rzero |
| | The natural log of recruitment at unfished biomass.
|
| |
|
VariableVector | log_devs |
| | The natural log of recruitment deviations.
|
| |
|
VariableVector | log_r |
| | The recruitment random effect parameter on the natural log scale.
|
| |
|
VariableVector | log_expected_recruitment |
| | Expectation of the recruitment process.
|
| |
|
fims_double | estimated_logit_steep |
| | The estimate of the logit transformation of steepness.
|
| |
|
fims_double | estimated_log_rzero |
| | The estimate of the natural log of recruitment at unfished biomass.
|
| |
|
RealVector | estimated_log_devs |
| | The estimates of the natural log of recruitment deviations.
|
| |
|
uint32_t | id |
| | The local id of the RecruitmentInterfaceBase object.
|
| |
|
SharedInt | process_id = -999 |
| | The process id of the RecruitmentInterfaceBase object.
|
| |
|
bool | finalized = false |
| | Is the object already finalized? The default is false.
|
| |
Rcpp interface for Beverton–Holt to instantiate from R: beverton_holt <- methods::new(beverton_holt).
◆ BevertonHoltRecruitmentInterface()
Construct a new Beverton–Holt Recruitment Interface object.
- Parameters
-
| other | The passed object to copy. |
◆ evaluate_mean()
| virtual double BevertonHoltRecruitmentInterface::evaluate_mean |
( |
double |
spawners, |
|
|
double |
phi_0 |
|
) |
| |
|
inlinevirtual |
Evaluates expected recruitment from the stock–recruitment relationship before recruitment-process deviations are applied.
Recruitment is evaluated for the first age represented in the input data. For example, if the weight-at-age and age-composition data start at age 1, recruitment is evaluated for age-1 fish rather than age-0 fish. The recruitment age is not set directly by this function; it is determined by the age structure of the input data.
Recruitment functors that do not define a stock–recruitment mean return the default value of zero.
- Parameters
-
| spawners | Spawning output at the time step being evaluated, such as spawning biomass or another model-specific measure of reproductive output. |
| phi_0 | Spawners per recruit at unfished equilibrium, used to scale the stock–recruitment relationship relative to unfished conditions. |
- Returns
- Expected recruitment before recruitment-process deviations or random effects are applied.
Implements RecruitmentInterfaceBase.
◆ evaluate_process()
| virtual double BevertonHoltRecruitmentInterface::evaluate_process |
( |
size_t |
pos | ) |
|
|
inlinevirtual |
Evaluate recruitment process - returns 0 in this module.
- Parameters
-
| pos | Position index, e.g., which year. |
Implements RecruitmentInterfaceBase.
◆ finalize()
| virtual void BevertonHoltRecruitmentInterface::finalize |
( |
| ) |
|
|
inlinevirtual |
Extracts derived quantities back to the Rcpp interface object from the Information object.
Reimplemented from FIMSRcppInterfaceBase.
◆ get_id()
| virtual uint32_t BevertonHoltRecruitmentInterface::get_id |
( |
| ) |
|
|
inlinevirtual |
◆ SetRecruitmentProcessID()
| void BevertonHoltRecruitmentInterface::SetRecruitmentProcessID |
( |
uint32_t |
process_id | ) |
|
|
inline |
Set the unique ID for the recruitment process object.
- Parameters
-
| process_id | Unique ID for the recruitment process object. |
◆ to_json()
| virtual std::string BevertonHoltRecruitmentInterface::to_json |
( |
| ) |
|
|
inlinevirtual |
Converts the data to json representation for the output.
- Returns
- A string is returned specifying that the module relates to the recruitment interface with Beverton–Holt stock–recruitment relationship. It also returns the ID and the parameters. This string is formatted for a json file.
Reimplemented from FIMSRcppInterfaceBase.
The documentation for this class was generated from the following file: