This is the class used to calculate some standard statistics about a given population.
More...
#include <popstatistics.h>
This is the class used to calculate some standard statistics about a given population.
◆ PopStatistics()
| PopStatistics::PopStatistics |
( |
| ) |
|
|
inline |
◆ ~PopStatistics()
| PopStatistics::~PopStatistics |
( |
| ) |
|
|
inline |
◆ calcStatistics() [1/2]
| void PopStatistics::calcStatistics |
( |
const AgeBandMatrix & |
agelenum, |
|
|
int |
lengr |
|
) |
| |
This function will calculate the standard statistics for a given population.
- Parameters
-
| agelenum | is the the AgeBandMatrix that specifies the catch |
| lengr | is the Length group vector for which mean weight should be calculated |
◆ calcStatistics() [2/2]
This function will calculate the standard statistics for a given population.
- Parameters
-
| pop | is the PopInfoIndexVector that specifies the population |
| lgrpdiv | is the LengthGroupDivision of the population |
| calcweight | is the flag to denote whether the mean weight should be calculated or not (default value 1) |
◆ meanLength()
| double PopStatistics::meanLength |
( |
| ) |
const |
|
inline |
This will return the mean length of the population.
- Returns
- meanlength
◆ meanWeight()
| double PopStatistics::meanWeight |
( |
| ) |
const |
|
inline |
This will return the mean weight of the population.
- Returns
- meanweight
◆ sdevLength()
| double PopStatistics::sdevLength |
( |
| ) |
const |
|
inline |
This will return the standard deviation of the length of the population.
- Returns
- sdevlength
◆ totalNumber()
| double PopStatistics::totalNumber |
( |
| ) |
const |
|
inline |
This will return the total number in the population.
- Returns
- totalnumber
The documentation for this class was generated from the following files: