![]() |
FIMS
v0.8.1
|
Base class for all selectivity functors. More...
#include <selectivity_base.hpp>
Public Member Functions | |
| SelectivityBase () | |
| Constructor. | |
| virtual const Type | evaluate (const Type &x)=0 |
| Calculates the selectivity. | |
| virtual const Type | evaluate (const Type &x, size_t pos)=0 |
| Calculates the selectivity. | |
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. | |
Static Public Attributes | |
| static uint32_t | id_g = 0 |
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 |
Base class for all selectivity functors.
| Type | The type of the selectivity functor. |
Calculates the selectivity.
| x | The independent variable in the logistic function (e.g., age or size in selectivity). |
Implemented in fims_popdy::DoubleLogisticSelectivity< Type >, and fims_popdy::LogisticSelectivity< Type >.
|
pure virtual |
Calculates the selectivity.
| x | The independent variable in the logistic function (e.g., age or size in selectivity). |
| pos | Position index, e.g., which year. |
Implemented in fims_popdy::DoubleLogisticSelectivity< Type >, and fims_popdy::LogisticSelectivity< Type >.
|
static |
The ID of the instance of the SelectivityBase class