FIMS  v0.8.0
Loading...
Searching...
No Matches
LogisticMaturityInterface Class Reference

Rcpp interface for logistic maturity to instantiate the object from R: logistic_maturity <- methods::new(logistic_maturity). More...

#include <rcpp_maturity.hpp>

Inheritance diagram for LogisticMaturityInterface:
MaturityInterfaceBase FIMSRcppInterfaceBase

Public Member Functions

 LogisticMaturityInterface ()
 The constructor.
 
 LogisticMaturityInterface (const LogisticMaturityInterface &other)
 Construct a new Logistic Maturity Interface object.
 
virtual ~LogisticMaturityInterface ()
 The destructor.
 
virtual uint32_t get_id ()
 Gets the ID of the interface base object.
 
virtual double evaluate (double x)
 Evaluate maturity using the logistic function.
 
virtual void finalize ()
 Extracts derived quantities back to the Rcpp interface object from the Information object.
 
virtual void set_uncertainty (std::map< std::string, std::vector< double > > &se_values)
 Set uncertainty values for logistic maturity parameters.
 
virtual std::string to_json ()
 Converts the data to json representation for the output.
 
- Public Member Functions inherited from MaturityInterfaceBase
 MaturityInterfaceBase ()
 The constructor.
 
 MaturityInterfaceBase (const MaturityInterfaceBase &other)
 Construct a new Maturity Interface Base object.
 
virtual ~MaturityInterfaceBase ()
 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.
 
void get_se_values (std::string name, std::map< std::string, std::vector< double > > &se_values, fims::Vector< double > &values)
 Method to extract standard error values from the se_values working map.
 
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

ParameterVector inflection_point
 The index value at which the response reaches 0.5.
 
ParameterVector slope
 The width of the curve at the inflection point.
 
- Public Attributes inherited from MaturityInterfaceBase
uint32_t id
 The local id of the MaturityInterfaceBase 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 MaturityInterfaceBase
static uint32_t id_g = 1
 The static id of the MaturityInterfaceBase object.
 
static std::map< uint32_t, std::shared_ptr< MaturityInterfaceBase > > live_objects
 The map associating the IDs of MaturityInterfaceBase 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.
 

Detailed Description

Rcpp interface for logistic maturity to instantiate the object from R: logistic_maturity <- methods::new(logistic_maturity).

Constructor & Destructor Documentation

◆ LogisticMaturityInterface()

LogisticMaturityInterface::LogisticMaturityInterface ( const LogisticMaturityInterface other)
inline

Construct a new Logistic Maturity Interface object.

Parameters
other

Member Function Documentation

◆ evaluate()

virtual double LogisticMaturityInterface::evaluate ( double  x)
inlinevirtual

Evaluate maturity using the logistic function.

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

Implements MaturityInterfaceBase.

◆ finalize()

virtual void LogisticMaturityInterface::finalize ( )
inlinevirtual

Extracts derived quantities back to the Rcpp interface object from the Information object.

Reimplemented from FIMSRcppInterfaceBase.

◆ get_id()

virtual uint32_t LogisticMaturityInterface::get_id ( )
inlinevirtual

Gets the ID of the interface base object.

Returns
The ID.

Implements MaturityInterfaceBase.

◆ set_uncertainty()

virtual void LogisticMaturityInterface::set_uncertainty ( std::map< std::string, std::vector< double > > &  se_values)
inlinevirtual

Set uncertainty values for logistic maturity parameters.

Sets the standard error values for the inflection point and slope parameters using the provided map.

Parameters
se_valuesA map from parameter names to vectors of standard error values.

Reimplemented from FIMSRcppInterfaceBase.

◆ to_json()

virtual std::string LogisticMaturityInterface::to_json ( )
inlinevirtual

Converts the data to json representation for the output.

Returns
A string is returned specifying that the module relates to the maturity interface with logistic maturity. 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: