View source: R/hyperparam.alpha.R
| hyperparam.alpha | R Documentation |
hyperparam.alpha evaluates the numbers of clusters for various
levels, and select the optimal level based on the runs of the cluster numbers.
hyperparam.alpha(icp.torus, alphavec = NULL, alpha.lim = 0.15) ## S3 method for class 'hyperparam.alpha' plot(x, ...)
icp.torus |
an object containing all values to compute the conformity
score, which will be constructed with |
alphavec |
either a scalar or a vector, or even |
alpha.lim |
a positive number lower than 1, which is the upper bound of Default is 0.15. |
x |
|
... |
additional parameter for ggplot2::ggplot() |
returns a hyperparam.alpha object which contains a data.frame for
the numbers of clusters corresponding to the levels and the optimal level.
hyperparam.J, hyperparam.torus
icp.torus
data <- toydata2[, 1:2]
n <- nrow(data)
split.id <- rep(2, n)
split.id[sample(n, floor(n/2))] <- 1
icp.torus <- icp.torus(data, split.id = split.id, model = "kmeans",
kmeansfitmethod = "ge", init = "h",
J = 25, verbose = TRUE)
hyperparam.alpha(icp.torus)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.