|
Gadget
|
This is the class used to store information about the length groups of the modelled stock population. More...
#include <lengthgroup.h>

Public Member Functions | |
| LengthGroupDivision (double minlength, double maxlength, double dl) | |
| This is the LengthGroupDivision constructor with evenly spaced length groups. More... | |
| LengthGroupDivision (const DoubleVector &vec) | |
| This is the LengthGroupDivision constructor with length groups that are possibly not evenly spaced. More... | |
| LengthGroupDivision (const LengthGroupDivision &lgrpdiv) | |
| This is the LengthGroupDivision constructor that creates a copy of an existing LengthGroupDivision. More... | |
| ~LengthGroupDivision () | |
| This is the default LengthGroupDivision destructor. More... | |
| double | meanLength (int i) const |
| This function will return the mean length of a specified length group. More... | |
| double | minLength (int i) const |
| This function will return the minimum length of a specified length group. More... | |
| double | maxLength (int i) const |
| This function will return the maximum length of a specified length group. More... | |
| double | minLength () const |
| This function will return the minimum length of the smallest length group. More... | |
| double | maxLength () const |
| This function will return the maximum length of the biggest length group. More... | |
| double | dl () const |
| This function will return the step length of the length groups. More... | |
| int | numLengthGroups () const |
| This function will return the total number of the length groups. More... | |
| int | numLengthGroup (double len) const |
| This function will return the identifier of a length group containing a specified length. More... | |
| int | Combine (const LengthGroupDivision *const addition) |
| This function will combine a second LengthGroupDivision with the current LengthGroupDivision. More... | |
| int | Error () const |
| This function will return the flag denoting whether an error has occured or not. More... | |
| void | printError () const |
| This function will print an error message about the LengthGroupDivision. More... | |
| void | Print (ofstream &outfile) const |
| This function will print the LengthGroupDivision information. More... | |
Protected Attributes | |
| int | error |
| This is the flag to denote whether an error has occured or not. More... | |
| int | size |
| This is the size of the length group. More... | |
| double | Dl |
| This is the step length for each length group. More... | |
| double | minlen |
| This is the minimum length of the smallest length group. More... | |
| double | maxlen |
| This is the maximum length of the biggest length group. More... | |
| DoubleVector | meanlength |
| This is the DoubleVector of the mean lengths for each length group. More... | |
| DoubleVector | minlength |
| This is the DoubleVector of the minimum lengths for each length group. More... | |
This is the class used to store information about the length groups of the modelled stock population.
| LengthGroupDivision::LengthGroupDivision | ( | double | minlength, |
| double | maxlength, | ||
| double | dl | ||
| ) |
This is the LengthGroupDivision constructor with evenly spaced length groups.
| minlength | is the minimum length of the smallest length group |
| maxlength | is the maximum length of the biggest length group |
| dl | is the step length for each length group |
| LengthGroupDivision::LengthGroupDivision | ( | const DoubleVector & | vec | ) |
This is the LengthGroupDivision constructor with length groups that are possibly not evenly spaced.
| vec | is the DoubleVector containing the end point of each length group |
| LengthGroupDivision::LengthGroupDivision | ( | const LengthGroupDivision & | lgrpdiv | ) |
This is the LengthGroupDivision constructor that creates a copy of an existing LengthGroupDivision.
| lgrpdiv | is the LengthGroupDivision to copy |
|
inline |
This is the default LengthGroupDivision destructor.
| int LengthGroupDivision::Combine | ( | const LengthGroupDivision *const | addition | ) |
This function will combine a second LengthGroupDivision with the current LengthGroupDivision.
|
inline |
This function will return the step length of the length groups.
|
inline |
This function will return the flag denoting whether an error has occured or not.
|
inline |
This function will return the maximum length of the biggest length group.
| double LengthGroupDivision::maxLength | ( | int | i | ) | const |
This function will return the maximum length of a specified length group.
| i | is the identifier of the length group |
| double LengthGroupDivision::meanLength | ( | int | i | ) | const |
This function will return the mean length of a specified length group.
| i | is the identifier of the length group |
|
inline |
This function will return the minimum length of the smallest length group.
| double LengthGroupDivision::minLength | ( | int | i | ) | const |
This function will return the minimum length of a specified length group.
| i | is the identifier of the length group |
| int LengthGroupDivision::numLengthGroup | ( | double | len | ) | const |
This function will return the identifier of a length group containing a specified length.
| len | is the length to find in the length group |
|
inline |
This function will return the total number of the length groups.
| void LengthGroupDivision::Print | ( | ofstream & | outfile | ) | const |
This function will print the LengthGroupDivision information.
| outfile | is the ofstream that the information gets sent to |
| void LengthGroupDivision::printError | ( | ) | const |
This function will print an error message about the LengthGroupDivision.
|
protected |
This is the step length for each length group.
|
protected |
This is the flag to denote whether an error has occured or not.
|
protected |
This is the maximum length of the biggest length group.
|
protected |
This is the DoubleVector of the mean lengths for each length group.
|
protected |
This is the minimum length of the smallest length group.
|
protected |
This is the DoubleVector of the minimum lengths for each length group.
|
protected |
This is the size of the length group.