powered by
Simulate 10% contaminated data set for applying TCLUST
simula.tclust(n, p = 4, k = 3, type = 2, balanced = 1)
a list with the following items
x - The generated dataset
true - The true classification
number of observations
dimension (p>=2 and p>q)
number of clusters (only k=3 and k=6 are allowed!!!)
1 (spherical for rest.fact=1) or 2 (elliptical for rest.fact=9^2)
1 (all clusters equal size) or 2 [proportions (25,30,35)% if k=3 and (12.5,15,17.5,12.5,15,17.5)% if k=6]
res <- simula.tclust(n=400,k=3,p=8,type=2,balanced=1) plot(res$x,col=res$true+1)
Run the code above in your browser using DataLab