FIMS  v0.8.0
Loading...
Searching...
No Matches
fims_popdy::LogisticMaturity< Type > Struct Template Reference

LogisticMaturity class that returns the logistic function value from fims_math. More...

#include <logistic.hpp>

Inheritance diagram for fims_popdy::LogisticMaturity< Type >:
fims_popdy::MaturityBase< Type > fims_model_object::FIMSObject< Type >

Public Member Functions

virtual const Type evaluate (const Type &x)
 Method of the logistic maturity class that implements the logistic function from FIMS math.
 
virtual const Type evaluate (const Type &x, size_t pos)
 Method of the logistic maturity class that implements the logistic function from FIMS math.
 
virtual void create_report_vectors (std::map< std::string, fims::Vector< fims::Vector< Type > > > &report_vectors)
 Create a map of report vectors for the maturity object.
 
virtual void get_report_vector_count (std::map< std::string, size_t > &report_vector_count)
 Get the report vector count object. used to get the length of each report vector for populating the UncertaintyReportInfo struct in FisheryModelBase.
 
- Public Member Functions inherited from fims_popdy::MaturityBase< Type >
 MaturityBase ()
 Constructor.
 
- 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 Attributes

fims::Vector< Typeinflection_point
 
fims::Vector< Typeslope
 
- 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
 

Additional Inherited Members

- Static Public Attributes inherited from fims_popdy::MaturityBase< Type >
static uint32_t id_g = 0
 

Detailed Description

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

LogisticMaturity class that returns the logistic function value from fims_math.

Member Function Documentation

◆ create_report_vectors()

template<typename Type >
virtual void fims_popdy::LogisticMaturity< Type >::create_report_vectors ( std::map< std::string, fims::Vector< fims::Vector< Type > > > &  report_vectors)
inlinevirtual

Create a map of report vectors for the maturity object.

Reimplemented from fims_model_object::FIMSObject< Type >.

◆ evaluate() [1/2]

template<typename Type >
virtual const Type fims_popdy::LogisticMaturity< Type >::evaluate ( const Type x)
inlinevirtual

Method of the logistic maturity class that implements the logistic function from FIMS math.

\[ \frac{1.0}{ 1.0 + exp(-1.0 * slope (x - inflection_point))} \]

Parameters
xThe independent variable in the logistic function (e.g., age or size at maturity).

Implements fims_popdy::MaturityBase< Type >.

◆ evaluate() [2/2]

template<typename Type >
virtual const Type fims_popdy::LogisticMaturity< Type >::evaluate ( const Type x,
size_t  pos 
)
inlinevirtual

Method of the logistic maturity class that implements the logistic function from FIMS math.

\[ \frac{1.0}{ 1.0 + exp(-1.0 * slope_t (x - {inflection\_point}_t))} \]

Parameters
xThe independent variable in the logistic function (e.g., age or size in selectivity).
posPosition index, e.g., which year.

Implements fims_popdy::MaturityBase< Type >.

◆ get_report_vector_count()

template<typename Type >
virtual void fims_popdy::LogisticMaturity< Type >::get_report_vector_count ( std::map< std::string, size_t > &  report_vector_count)
inlinevirtual

Get the report vector count object. used to get the length of each report vector for populating the UncertaintyReportInfo struct in FisheryModelBase.

Reimplemented from fims_model_object::FIMSObject< Type >.

Member Data Documentation

◆ inflection_point

template<typename Type >
fims::Vector<Type> fims_popdy::LogisticMaturity< Type >::inflection_point

50 percent quantile of the value of the quantity of interest (x); e.g. age at which 50 percent of the fish are mature

◆ slope

scalar multiplier of difference between quantity of interest value (x) and inflection_point


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