dx.mixture: Mixture density functions of the cell lengths in the...

View source: R/misc.r

dx.mixtureR Documentation

Mixture density functions of the cell lengths in the increment core

Description

Functions to get values of the mixture density functions of the cell lengths on three different scales: as observed in the increment core, i.e. cut or uncut fibers or fines (dx.mixture), as true cell lengths (fibers or fines) that at least partially appears in the increment core (dy.mixture) and as the true cell lengths (fines or fibres) in the standing tree (dw.mixture).

Usage

  dx.mixture(x, par, r, model="ggamma")
  dy.mixture(x, par, model="ggamma")
  dw.mixture(x, par, r, model="ggamma")

Arguments

x

vector of cell length values

par

vector of mixture model parameters

r

radius of the increment core

model

either ggamma (default) or lognorm

Value

returns a vector of density values

Author(s)

Sara Sjöstedt de Luna, Konrad Abramowicz, Natalya Pya Arnqvist

See Also

dx.fibers, dy.fibers, dw.fibers

Examples

## Not run:  
 library(fiberLD)
 data(cell.length) 
 r <- 6
 d <- fled(data=cell.length,model="lognorm",r=r)
 x <- seq(0, 8,length=100)
 f1 <- dx.mixture(x=x, par=d$par,r=r, model="lognorm")
 plot(x,f1,type="l")

 w <- seq(0, 2*r+2,length=150)
 f2 <- dy.mixture(w, d$par, model="lognorm")
 f3 <- dw.mixture(w, d$par, 6, model="lognorm")
 plot(w,f3,type="l")

## End(Not run)

fiberLD documentation built on July 21, 2022, 5:08 p.m.