![]() |
FIMS
v0.8.1
|
Rcpp interface for EWAAGrowth to instantiate the object from R: ewaa <- methods::new(EWAAGrowth). Where, EWAA stands for empirical weight at age and growth is not actually estimated. More...
#include <rcpp_growth.hpp>
Public Member Functions | |
| EWAAGrowthInterface () | |
| The constructor. | |
| EWAAGrowthInterface (const EWAAGrowthInterface &other) | |
| Construct a new EWAAGrowthInterface object. | |
| virtual | ~EWAAGrowthInterface () |
| The destructor. | |
| virtual uint32_t | get_id () |
| Gets the ID of the interface base object. | |
| std::map< int, std::map< double, double > > | make_map (RealVector ages, RealVector weights, SharedInt n_years) |
| Create a map of input numeric vectors. | |
| virtual double | evaluate (double age) |
| Evaluate the growth using empirical weight at age. | |
| virtual std::string | to_json () |
| Converts the data to json representation for the output. | |
Public Member Functions inherited from GrowthInterfaceBase | |
| GrowthInterfaceBase () | |
| The constructor. | |
| GrowthInterfaceBase (const GrowthInterfaceBase &other) | |
| Construct a new Growth Interface Base object. | |
| virtual | ~GrowthInterfaceBase () |
| The destructor. | |
Public Member Functions inherited from FIMSRcppInterfaceBase | |
| virtual bool | add_to_fims_tmb () |
| A virtual method to inherit to add objects to the TMB model. | |
| virtual void | finalize () |
| Extracts derived quantities back to the Rcpp interface object from the Information object. | |
| std::string | value_to_string (double value) |
| Report the parameter 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. | |
Public Attributes | |
| RealVector | weights |
| Weights (mt) for each age class. | |
| RealVector | ages |
| Ages (years) for each age class. | |
| SharedInt | n_years |
| An integer specifying the number of years. | |
| std::shared_ptr< std::map< int, std::map< double, double > > > | ewaa |
| A map of empirical weight-at-age values allowing multiple modules to access and modify the weights without copying values between modules. | |
| bool | initialized = false |
| Have weight and age vectors been set? The default is false. | |
Public Attributes inherited from GrowthInterfaceBase | |
| uint32_t | id |
| The local id of the GrowthInterfaceBase object. | |
Public Attributes inherited from FIMSRcppInterfaceBase | |
| bool | finalized = false |
| Is the object already finalized? The default is false. | |
Additional Inherited Members | |
Static Public Attributes inherited from GrowthInterfaceBase | |
| static uint32_t | id_g = 1 |
| The static id of the GrowthInterfaceBase object. | |
| static std::map< uint32_t, std::shared_ptr< GrowthInterfaceBase > > | live_objects |
| The map associating the IDs of GrowthInterfaceBase to the objects. This is a live object, which is an object that has been created and lives in memory. | |
Static Public Attributes inherited from FIMSRcppInterfaceBase | |
| static std::vector< std::shared_ptr< FIMSRcppInterfaceBase > > | fims_interface_objects |
| FIMS interface object vectors. | |
Rcpp interface for EWAAGrowth to instantiate the object from R: ewaa <- methods::new(EWAAGrowth). Where, EWAA stands for empirical weight at age and growth is not actually estimated.
|
inline |
Construct a new EWAAGrowthInterface object.
| other |
Evaluate the growth using empirical weight at age.
| age | The age at of the individual to evaluate weight. |
This can be called from R using ewaagrowth.evaluate(age).
Implements GrowthInterfaceBase.
|
inline |
Create a map of input numeric vectors.
| weights | Type vector of weights. |
| ages | Type vector of ages. |
| n_years | An integer specifying the number of years. |
|
inlinevirtual |
Converts the data to json representation for the output.
Reimplemented from FIMSRcppInterfaceBase.