powered by
Generate a sample of a Gaussian Mixture Model whose centers are generate randomly on a sphere of radius radius.
radius
gen_K(n=500,d=5,K=3,pcont=0,df=1, cont="Student",min=-5,max=5,radius=5)
A list with:
A numerical matrix giving the generated data.
An character vector specifying the true classification.
A positive integer giving the number of data per cluster. Default is 500.
500
A positive integer giving the dimension. Default is 5.
5
A positive integer giving the number of clusters. Default is 3.
3
A scalar between 0 and 1 giving the proportion of contaminated data.
0
1
A positive integer giving the degrees of freedom of the law of the contaminated data if cont='Student'. Default is 1.
cont='Student'
The law of the contaminated data. Can be 'Student' (default) and 'Unif'.
'Student'
'Unif'
A scalar giving the lower bound of the uniform law if cont='Unif'. Default is -5.
cont='Unif'
-5
A scalar giving the upper bound of the uniform law if cont='Unif'. Default is 5.
The radius of the sphere on each the centers of the class are generated. Default is 5.
See also Kmedians and Kmeans.
Kmedians
Kmeans
n <- 500 K <- 3 pcont <- 0.2 ech <- gen_K(n=n,K=K,pcont=pcont) X=ech$X
Run the code above in your browser using DataLab