generate.sample6 | R Documentation |
n examples for each from 6 classes are generated. All classes (each one of n examples) has dim components The clusters have a hierarchical structure: 2 or 6 clusters may be detected. Anyway note that the structure of the data depends on the parameters: two main clusters are centered in m and -m. Around each main cluster three other subclusters are generated using the displacement d.
generate.sample6(n = 20, m = 10, dim = 2, d = 3, s = 0.2)
n |
number of examples for each class |
m |
mean basic value |
dim |
amount of the displacement from m |
d |
dimension of the examples |
s |
value of the diagonal elements of the covariance matrix |
a matrix with dim rows (variables) and n*6 columns (examples)
Giorgio Valentini valentini@di.unimi.it
generate.sample6()
# Generation of a data set with 120 200-dimensional examples
# data have a two-level hierarchical structure with respectively 2 and 6 clusters
generate.sample6(n = 20, m = 10, dim = 200, d = 3, s = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.