R/msBP.postCluster.R

Defines functions msBP.postCluster

Documented in msBP.postCluster

msBP.postCluster <- function(y, weights)
{
n <- length(y)
vec.weights <- tree2vec(weights)
maxS <- weights$max.s
res<-.C("postCluster_C", s=as.integer(rep(0,n)), h=as.integer(rep(1,n)), y=as.double(y), as.double(vec.weights), as.integer(maxS), as.integer(n), as.integer(0), PACKAGE = "msBP")
cbind(res$s,res$h)
}

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.