View source: R/clustering.sc.dp.R
print.clustering.sc.dp | R Documentation |
Print the result returned by calling clustering.sc.dp
## S3 method for class 'clustering.sc.dp' print(x, ...)
x |
object returned by calling clustering.sc.dp() |
... |
ignored arguments |
An object of class 'clustering.sc.dp
' which has a print method and is a list with components:
cluster |
A vector of integers ( |
centers |
A matrix whose rows represent cluster centres. |
withinss |
The within-cluster sum of squares for each cluster. |
size |
The number of points in each cluster. |
Tibor Szkaliczki szkaliczki.tibor@sztaki.hu
# Example: clustering data generated from a random walk x<-matrix(, nrow = 100, ncol = 2) x[1,]<-c(0,0) for(i in 2:100) { x[i,1]<-x[i-1,1] + rnorm(1,0,0.1) x[i,2]<-x[i-1,2] + rnorm(1,0,0.1) } result<-clustering.sc.dp(x,2) print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.