FIMS  v0.8.1
Loading...
Searching...
No Matches
double_logistic.hpp
Go to the documentation of this file.
1
9#ifndef POPULATION_DYNAMICS_SELECTIVITY_DOUBLE_LOGISTIC_HPP
10#define POPULATION_DYNAMICS_SELECTIVITY_DOUBLE_LOGISTIC_HPP
11
12// #include "../../../interface/interface.hpp"
13#include "../../../common/fims_math.hpp"
14#include "../../../common/fims_vector.hpp"
15#include "selectivity_base.hpp"
16
17namespace fims_popdy {
18
23template <typename Type>
39
41
53 virtual const Type evaluate(const Type& x) {
54 return fims_math::double_logistic<Type>(
56 slope_desc[0], x);
57 }
58
73 virtual const Type evaluate(const Type& x, size_t pos) {
74 return fims_math::double_logistic<Type>(
75 inflection_point_asc.get_force_scalar(pos),
76 slope_asc.get_force_scalar(pos),
77 inflection_point_desc.get_force_scalar(pos),
78 slope_desc.get_force_scalar(pos), x);
79 }
80};
81
82} // namespace fims_popdy
83
84#endif /* POPULATION_DYNAMICS_SELECTIVITY_DOUBLE_LOGISTIC_HPP */
Definition fims_vector.hpp:27
The population dynamics of FIMS.
Definition catch_at_age.hpp:41
void clear_internal()
Clears the internal objects.
Definition rcpp_interface.hpp:239
Declares the SelectivityBase class which is the base class for all selectivity functors.
DoubleLogisticSelectivity class that returns the double logistic function value from fims_math.
Definition double_logistic.hpp:24
virtual const Type evaluate(const Type &x, size_t pos)
Method of the double logistic selectivity class that implements the double logistic function from FIM...
Definition double_logistic.hpp:73
fims::Vector< Type > inflection_point_asc
Definition double_logistic.hpp:25
fims::Vector< Type > slope_asc
Definition double_logistic.hpp:28
fims::Vector< Type > slope_desc
Definition double_logistic.hpp:34
fims::Vector< Type > inflection_point_desc
Definition double_logistic.hpp:31
virtual const Type evaluate(const Type &x)
Method of the double logistic selectivity class that implements the double logistic function from FIM...
Definition double_logistic.hpp:53
Base class for all selectivity functors.
Definition selectivity_base.hpp:24