![]() |
FIMS
v0.10.0
|
Growth "products" in a consistent (year, age, sex) space. More...
#include <growth_products.hpp>
Public Member Functions | |
| GrowthProducts ()=default | |
| Construct an empty growth-product container. | |
| GrowthProducts (std::size_t years, std::size_t ages, std::size_t sexes) | |
| Construct and size the growth-product container. | |
| void | Resize (std::size_t years, std::size_t ages, std::size_t sexes) |
| Resize all cached product arrays. | |
| std::size_t | Index (std::size_t y, std::size_t a, std::size_t s) const |
| Convert a (year, age, sex) triple into the contiguous storage index. | |
| Type & | MeanLAA (std::size_t y, std::size_t a, std::size_t s) |
| Access mean length-at-age by reference. | |
| Type & | SdLAA (std::size_t y, std::size_t a, std::size_t s) |
| Access standard deviation of length-at-age by reference. | |
| Type & | MeanWAA (std::size_t y, std::size_t a, std::size_t s) |
| Access mean weight-at-age by reference. | |
| const Type & | MeanLAA (std::size_t y, std::size_t a, std::size_t s) const |
| Access mean length-at-age as a const reference. | |
| const Type & | SdLAA (std::size_t y, std::size_t a, std::size_t s) const |
| Access standard deviation of length-at-age as a const reference. | |
| const Type & | MeanWAA (std::size_t y, std::size_t a, std::size_t s) const |
| Access mean weight-at-age as a const reference. | |
| std::size_t | Size () const |
| Return the total number of cached cells. | |
Public Attributes | |
| std::size_t | n_years = 0 |
| std::size_t | n_ages = 0 |
| std::size_t | n_sexes = 0 |
| std::vector< Type > | mean_LAA |
| std::vector< Type > | sd_LAA |
| std::vector< Type > | mean_WAA |
Growth "products" in a consistent (year, age, sex) space.
Storage is contiguous in row-major order: idx = ((y * n_ages + a) * n_sexes + s)
|
inline |
Construct and size the growth-product container.
| years | Number of years. |
| ages | Number of ages. |
| sexes | Number of sexes. |
|
inline |
Convert a (year, age, sex) triple into the contiguous storage index.
| y | Year index. |
| a | Age index. |
| s | Sex index. |
|
inline |
Access mean length-at-age by reference.
| y | Year index. |
| a | Age index. |
| s | Sex index. |
|
inline |
Access mean length-at-age as a const reference.
| y | Year index. |
| a | Age index. |
| s | Sex index. |
|
inline |
Access mean weight-at-age by reference.
| y | Year index. |
| a | Age index. |
| s | Sex index. |
|
inline |
Access mean weight-at-age as a const reference.
| y | Year index. |
| a | Age index. |
| s | Sex index. |
|
inline |
Resize all cached product arrays.
| years | Number of years. |
| ages | Number of ages. |
| sexes | Number of sexes. |
|
inline |
Access standard deviation of length-at-age by reference.
| y | Year index. |
| a | Age index. |
| s | Sex index. |
|
inline |
Access standard deviation of length-at-age as a const reference.
| y | Year index. |
| a | Age index. |
| s | Sex index. |
|
inline |
Return the total number of cached cells.
| std::vector<Type> fims_popdy::GrowthProducts< Type >::mean_LAA |
mean length-at-age values
| std::vector<Type> fims_popdy::GrowthProducts< Type >::mean_WAA |
mean weight-at-age values
| std::size_t fims_popdy::GrowthProducts< Type >::n_ages = 0 |
number of ages represented
| std::size_t fims_popdy::GrowthProducts< Type >::n_sexes = 0 |
number of sexes represented
| std::size_t fims_popdy::GrowthProducts< Type >::n_years = 0 |
number of years represented
| std::vector<Type> fims_popdy::GrowthProducts< Type >::sd_LAA |
standard deviation of length-at-age values