addCluster {bdlp} | R Documentation |
Add an empty cluster to a metadata object
Description
Add an empty cluster to a metadata object
Usage
addCluster(m)
Arguments
m |
A metadata object |
Value
A metadata object with an empty additional cluster
Examples
require(MASS)
m <- new("metadata.metric",
clusters = list(c1 = list(n = 25, mu = c(4,5), Sigma=diag(1,2)),
c2 = list(n = 25, mu = c(-1,-2), Sigma=diag(1,2))),
genfunc = mvrnorm)
m2 <- addCluster(m)
[Package bdlp version 0.9-2 Index]