methodsMixnorm: mixnorm

mixnormR Documentation

mixnorm

Description

Simulates a normal density function from an FLQuant

Usage

mixnorm(n, mn, sd, bin, left = T)

Arguments

mn

an FLQuant with means

sd

an FLQuant with standard deviation

Value

an FLPar with expected probability for lengths-at-age

Examples

## Not run: 
mn=FLQuant( 1:5,     dimnames=list(age=1:5,year=1991:2000,unit=1:2))
sd=FLQuant((1:5)/5,dimnames=list(age=1:5,year=1991:2000))
md=mixnorm(mn,sd,(1:20)/4)
ggplot(as.data.frame(md))+
   geom_line(aes(len,data,group=age))+
   facet_wrap(year~unit)
ggplot(as.data.frame(apply(md,1,sum)))+
   geom_line(aes(as.numeric(as.character(params)),data))     
 
## End(Not run)

laurieKell/mpb documentation built on Sept. 9, 2023, 9:47 p.m.