|
26 | 26 | #' Possible values are: "covariance", "fixedr", "spherical", "diagonal", |
27 | 27 | #' "eigenvalues", "all" (default). |
28 | 28 | #' |
29 | | -#' Currently, if the \code{centers} argument is a vector, only a single type can |
30 | | -#' be used. |
| 29 | +#' Currently, if the \code{centers} argument is a vector, only a single type |
| 30 | +#' can be used. |
31 | 31 | #' |
32 | 32 | #' @param iter.max The maximum number of iterations of the clustering algorithm. |
33 | 33 | #' |
|
62 | 62 | #' visible in the results as NA in the "centers" matrix (as well as the |
63 | 63 | #' corresponding values in the list of covariances). |
64 | 64 | #' |
65 | | -#' @param interactive If \code{TRUE}, the result of clustering will be plotted after |
66 | | -#' every iteration. |
| 65 | +#' @param interactive If \code{TRUE}, the result of clustering will be plotted |
| 66 | +#' after every iteration. |
67 | 67 | #' |
68 | 68 | #' @param threads The number of threads to use or "auto" to use the default |
69 | 69 | #' number of threads (usually the number of available processing units/cores) |
@@ -344,7 +344,7 @@ cec <- function(x, |
344 | 344 |
|
345 | 345 | card.min <- max(card.min, n + 1) |
346 | 346 | k <- max(var.centers) |
347 | | - startTime <- proc.time() |
| 347 | + # startTime <- proc.time() |
348 | 348 |
|
349 | 349 | centers.r <- list(init.method = init.method.name, |
350 | 350 | var.centers = as.integer(var.centers), |
@@ -378,7 +378,7 @@ cec <- function(x, |
378 | 378 | } |
379 | 379 |
|
380 | 380 | k.final <- nrow(Z$centers) |
381 | | - execution.time <- as.vector((proc.time() - startTime))[3] |
| 381 | + # execution.time <- as.vector((proc.time() - startTime))[3] |
382 | 382 | Z$centers[is.nan(Z$centers)] <- NA |
383 | 383 | tab <- tabulate(Z$cluster) |
384 | 384 | probability <- vapply(tab, function(c.card) { |
@@ -427,7 +427,7 @@ cec <- function(x, |
427 | 427 |
|
428 | 428 | structure( |
429 | 429 | list(data = x, cluster = Z$cluster, centers = Z$centers, probability = probability, cost.function = Z$energy, |
430 | | - nclusters = Z$nclusters, iterations = Z$iterations, time = execution.time, covariances = Z$covariances, |
| 430 | + nclusters = Z$nclusters, iterations = Z$iterations, covariances = Z$covariances, |
431 | 431 | covariances.model = covariances.model, means.model = means.model), |
432 | 432 | class = "cec") |
433 | 433 | } |
|
0 commit comments