Generate size composition of catch given sample of catch-at-age, expected length-at-age, and standard deviation of length-at-age. Model assumes length-at-age is normally distributed, and that selectivity is size-dependant
genLenComp(CAL_bins, CAL_binsmid, SL, CAL_ESS, CAL_nsamp, CN, LaA, LaASD,
truncSD)
vector of catch-at-length size bins
vector (nbins = length(CAL_bins) - 1) of mid-points for catch-at-length size bins
matrix (nbins, nyears) of selectivity-at-length class for each year
effective sample size of catch-at-length data
sample size of catch-at-length data
matrix (nyears, maxage) of catch-at-age for each year
matrix (maxage, nyears) of expected length-at-age for each year
matrix (maxage, nyears) of standard deviation of length-at-age for each year
optional argument to truncate the length-at-age distribution at `truncSD` standard deviations e.g., a value of 2 truncates the length-at-age distribution at two standard deviations (set to 0 to ignore (default))