R: Generation of data set containing two clusters with untypical...
shapes.circles2
R Documentation
Generation of data set containing two clusters with untypical ring shapes (circles)
Description
Generation of data set containing two clusters with untypical ring shapes. For each point first random radius r from given interval is generated then random angle alpha and finally the coordinates of point are calculated as (r*cos(alpha),r*sin(alpha)). For bull's eye data set second shape is filled circle (r starts from 0)
number of objects in each cluster - positive integer value or vector with length=2
,
shape1rFrom
minimal value of radius for first ring
shape1rTo
maximal value of radius for first ring
shape2rFrom
minimal value of radius for second ring
shape2rTo
maximal value of radius for second ring
outputCsv
optional, name of csv file with generated data (first column contains id, second - number of cluster and others - data)
outputCsv2
optional, name of csv (a comma as decimal point and a semicolon as field separator) file with generated data (first column contains id, second - number of cluster and others - data)
outputColNames
outputColNames=TRUE indicates that output file (given by outputCsv and outputCsv2 parameters) contains first row with column names
outputRowNames
outputRowNames=TRUE indicates that output file (given by outputCsv and outputCsv2 parameters) contains a vector of row names
Value
clusters
cluster number for each object
data
generated data - matrix with objects in rows and variables in columns