R: Two and three dimensional data representing two half discs
disc2d
R Documentation
Two and three dimensional data representing two half discs
Description
Two and three dimensional data and their hierarchical modal clustering with 400 observations where the first two dimensions represent the shape of two discs.
disc2d and disc3d are two and three dimensional
matrices. disc2d.hmac and disc3d.hmac are objects of class hmac
obtained from applying phmac on disc2d and disc3d respectively
Details
Two dimensional data with 400 observations representing the shape of two
half discs.
Author(s)
Surajit Ray and Yansong Cheng
References
Li. J, Ray. S, Lindsay. B. G, "A nonparametric statistical approach to
clustering via mode identification," Journal of Machine Learning
Research , 8(8):1687-1723, 2007.
Lindsay, B.G., Markatou M., Ray, S., Yang, K., Chen, S.C. "Quadratic distances on
probabilities: the foundations," The Annals of Statistics Vol. 36,
No. 2, page 983–1006, 2008.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Modalclust)
Loading required package: mvtnorm
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Loading required package: class
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Modalclust/disc2d.Rd_%03d_medium.png", width=480, height=480)
> ### Name: disc2d
> ### Title: Two and three dimensional data representing two half discs
> ### Aliases: disc2d disc3d disc2d.hmac disc3d.hmac
> ### Keywords: data
>
> ### ** Examples
>
> data(disc2d)
> plot(disc2d)
> data(disc2d.hmac)
> summary.hmac(disc2d.hmac)
At levels 1 2 3 there are 4 3 2 clusters respectively
The modes of each level of clusters are
Modes at level 1
X1 X2
1 0.4991193 0.4112484
2 1.4563997 0.9594475
3 2.9902405 -0.8986439
4 4.4219625 -0.1451180
Modes at level 2
X1 X2
1 0.5184229 0.4269087
2 1.4780928 0.9519243
3 3.0214890 -0.8986338
Modes at level 3
X1 X2
1 1.502569 0.9424770
2 3.049604 -0.8960544
> hard.hmac(disc2d.hmac,n.clust=2)
The level at which there are 2 clusters is 3
>
>
>
>
>
>
>
> dev.off()
null device
1
>