R/msBP.rsample.R

Defines functions msBP.rsample

Documented in msBP.rsample

msBP.rsample <-
function(n, msBPtree)
{
Rvec <- tree2vec(msBPtree$R)
Svec <- tree2vec(msBPtree$S)
res <- .C("rsample_msBP_C", as.integer(n), as.double(Rvec), as.double(Svec), 
		as.double(msBPtree$a), as.double(msBPtree$b), as.integer(msBPtree$max.s), 
		ans=as.double(rep(0, n)), PACKAGE = "msBP")
res$ans
}

Try the msBP package in your browser

Any scripts or data that you put into this service are public.

msBP documentation built on Aug. 23, 2023, 1:06 a.m.