Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dbs-class

Class "dbs"


Description

This class pertains to results of the application of function dbs.

Objects from the Class

Objects can be created by calls of the form new("dbs", ...) or as a result from calling function dbs.

Slots

call:

Object of class "call" reporting the matched call.

x:

Object of class "matrix" representing the clustered data points.

prior:

Object of class "numeric" being the prior probabilities of belonging to the groups.

dbs:

Object of class "numeric" reporting the density-based silhouette information of the clustered data.

clusters:

Object of class "numeric" reporting the group labels of grouped data.

noc:

Object of class "numeric" indicating the number of clusters.

stage:

Object of class "ANY" corresponding to the stage of the classification at which the density-based silhouette information is computed when dbs is applied to an object of pdfCluster-class.

Methods

plot

signature(x = "dbs", y = "missing"):

S4 method for plotting objects of dbs-class. Data are partitioned into the clusters, sorted in a decreasing order with respect to their dbs value and displayed on a bar graph. See plot,dbs-method for further details.

show

signature(object = "dbs"):

S4 method for showing objects of dbs-class. The following elements are shown:

  • the dbs index computed at the observed data;

  • The cluster membership of each data point;

summary

signature(object = "dbs"):

S4 method for summarizing objects of dbs-class. The following elements are shown:

  • a summary (minimum, 1st quartile, median, mean, 3rd quartile, maximum) of the dbs values for each cluster;

  • a summary (minimum, 1st quartile, median, mean, 3rd quartile, maximum) of the dbs values for all the observations.

See Also

Examples

showClass("dbs")

#wine example
#data loading
data(wine)

# select a subset of variables
x <- wine[, c(2,5,8)]

#clustering
cl <- pdfCluster(x)
 
dsil <- dbs(cl)
dsil
summary(dsil)

pdfCluster

Cluster Analysis via Nonparametric Density Estimation

v1.0-3
GPL-2
Authors
Adelchi Azzalini, Giovanna Menardi for the current version; Adelchi Azzalini, Giovanna Menardi and Tiziana Rosolin up to version 0.1-13.
Initial release
2018-12-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.