1 #ifndef popstatistics_h
2 #define popstatistics_h
18 PopStatistics() { meanlength = 0.0; meanweight = 0.0; totalnumber = 0.0; sdevlength = 0.0; };
This class implements a vector of PopInfoIndexVector values, indexed from minage not 0.
Definition: agebandmatrix.h:15
This is the class used to store information about the length groups of the modelled stock population.
Definition: lengthgroup.h:10
This class implements a dynamic vector of PopInfo values, indexed from minpos not 0.
Definition: popinfoindexvector.h:11
This is the class used to calculate some standard statistics about a given population.
Definition: popstatistics.h:13
~PopStatistics()
This is the default PopStatistics destructor.
Definition: popstatistics.h:22
PopStatistics()
This is the default PopStatistics constructor.
Definition: popstatistics.h:18
double meanWeight() const
This will return the mean weight of the population.
Definition: popstatistics.h:45
double sdevLength() const
This will return the standard deviation of the length of the population.
Definition: popstatistics.h:55
double totalNumber() const
This will return the total number in the population.
Definition: popstatistics.h:50
double meanLength() const
This will return the mean length of the population.
Definition: popstatistics.h:40
void calcStatistics(const PopInfoIndexVector &pop, const LengthGroupDivision *const lgrpdiv, int calcweight=1)
This function will calculate the standard statistics for a given population.
Definition: popstatistics.cc:8