ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
alk.cpp File Reference

(Last Changed on August 28, 2012 for git-revision d2a831afad5c1e6807d8d93977ce5fac3c7168f3.)

Age-length probability transition matrix. More...

#include "statsLib.h"

Go to the source code of this file.

Functions

dvar_matrix ageLengthKey (const dvar_vector &mu, const dvar_vector &sig, const dvector &x)
 Age Length Key. More...
 
dmatrix ageLengthKey (const dvector &mu, const dvector &sig, const dvector &x)
 Age Length Key. More...
 
dvar_matrix ALK (dvar_vector mu, dvar_vector sig, dvector x)
 

Detailed Description

Age-length probability transition matrix.

Remarks
This file contains a function for computing a conditional probability transition from age-to-length. This is also known as an age-length-key in standard Fisheries Stock assessment jargon. This function is useful for converting proportions-at-age to length-at-age by mulitplying a vector of age proportions times the age-length-key. The result is a vector of lengths. Note that in this function the rows are ages, and colums are length intervals.
Author
Steven Martell
Date
2/27/2011

The function is implemented as

\[ P(x|a) \]

where $P(x|a)$ is the probabilty of being in the length interval $x$ for a given age $a$.

Definition in file alk.cpp.

Function Documentation

dmatrix ageLengthKey ( const dvector mu,
const dvector sig,
const dvector x 
)

Age Length Key.

Author
Steven James Dean Martell UBC Fisheries Centre
Date
2011-06-28
Parameters
muis the mean length-at-age
sigis the std in mean length-at-age
xis the vector of break points for the length bins
Returns
dmatrix containing the probability of length(x) for a given age(a)
See Also

Definition at line 79 of file alk.cpp.

dvar_matrix ALK ( dvar_vector  mu,
dvar_vector  sig,
dvector  x 
)

Definition at line 105 of file alk.cpp.