Learn R Programming

clusterv (version 1.1.1)

generate.sample7: Sample7 generator: multivariate normally distributed data synthetic generator

Description

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 two other subclusters are generated using the displacement d.

Usage

generate.sample7(n = 20, m = 10, dim = 1000, d = 3, s = 1)

Value

a matrix with dim rows (variables) and n*6 columns (examples)

Arguments

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

Author

Giorgio Valentini valentini@di.unimi.it

Examples

Run this code
generate.sample7()
# Generation of a data set with 60 100-dimensional examples
# data have a two-level hierarchical structure with respectively 2 and 6 clusters 
generate.sample7(n = 10, m = 10, dim = 100, d = 4, s = 0.4)

Run the code above in your browser using DataLab