FIMS  v0.11.0
Loading...
Searching...
No Matches
fims_popdy::GrowthBase< Type > Struct Template Referenceabstract

Base class for all growth functors. More...

#include <growth_base.hpp>

Inheritance diagram for fims_popdy::GrowthBase< Type >:
fims_model_object::FIMSObject< Type > fims_model_object::FIMSMemoryTracker fims_popdy::EWAAGrowth< Type > fims_popdy::GrowthDerivedObservationBase< Type > fims_popdy::VonBertalanffySchnuteGrowth< Type > fims_popdy::VonBertalanffySchnuteGrowthModelAdapter< Type >

Public Member Functions

 GrowthBase ()
 Constructor.
virtual const Type evaluate (int year, const double &a)=0
 Calculates the growth at the independent variable value.
Public Member Functions inherited from fims_model_object::FIMSObject< Type >
uint32_t GetId () const
 Getter that returns the unique id for parameters in the model.
bool CheckDimensions (size_t actual, size_t expected)
 Check the dimensions of an object.
Public Member Functions inherited from fims_model_object::FIMSMemoryTracker
void register_self (const uint32_t id)
 Registers a FIMSObject instance with the memory tracker.

Additional Inherited Members

Public Attributes inherited from fims_model_object::FIMSObject< Type >
uint32_t id
std::vector< Type * > parameters
std::vector< Type * > random_effects_parameters
std::vector< Type * > fixed_effects_parameters
Static Public Attributes inherited from fims_model_object::FIMSMemoryTracker
static int total_active_objects = 0
 Total number of active FIMSObject instances currently in memory.

Detailed Description

template<typename Type>
struct fims_popdy::GrowthBase< Type >

Base class for all growth functors.

Template Parameters
TypeThe type of the growth functor.

Member Function Documentation

◆ evaluate()

template<typename Type>
virtual const Type fims_popdy::GrowthBase< Type >::evaluate ( int year,
const double & a )
pure virtual

Calculates the growth at the independent variable value.

Parameters
yearThe year at which to return weight of the fish (in kg).
aThe age at which to return weight of the fish (in kg).

Implemented in fims_popdy::EWAAGrowth< Type >, fims_popdy::VonBertalanffySchnuteGrowth< Type >, and fims_popdy::VonBertalanffySchnuteGrowthModelAdapter< Type >.


The documentation for this struct was generated from the following file: