FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
ParameterLibrary::Species Class Reference

One species of the library.

#include <ParameterLibrary.h>

Public Member Functions

double SigmaBsPerKg (double meanLengthCm, double frequencykHz) const
 
double WeightKg (double lengthCm) const
 
double LengthCv () const
 The coefficient of variation of the length spread around the mean.
 

Friends

class ParameterLibrary
 

Member Function Documentation

◆ SigmaBsPerKg()

double ParameterLibrary::Species::SigmaBsPerKg ( double  meanLengthCm,
double  frequencykHz 
) const

The backscattering cross section per kilogram, averaged over the length spread.

The lengths are a normal distribution around meanLengthCm with standard deviation LengthCv() times the mean, sampled at 81 points over plus and minus four standard deviations; sigma_bs and the weight are both averaged over it, and their ratio is returned.

Parameters
meanLengthCmThe mean length, cm.
frequencykHzThe frequency, kHz; must be one the library has data for.
Returns
sigma_bs per kg, m^2/kg.
Exceptions
std::invalid_argumentif the species has no data at frequencykHz, or (a table) when the length spread reaches outside the tabulated lengths.

◆ WeightKg()

double ParameterLibrary::Species::WeightKg ( double  lengthCm) const

The weight of one animal of a given length, W = a L^b.

Parameters
lengthCmThe length, cm.
Returns
The weight, kg.

The documentation for this class was generated from the following file: