dataDef <- dataDemo[1 : 25, c(2, 3, 5)] #In the interests of simplicity of the computation involved.
data1 <- dataDemo[1 : 25, c(2, 3, 5)]
K <- 3 ; percTrimm <- 0.01 ; lambda <- 0.5 ; A <- 5
Th <- 0 ; T0 <- 0 ; alpha <- 0.9
set.seed(2014)
Dout <- TDDclust(x = dataDef, K = K, lambda = lambda, Th = Th, A = A,
T0 = T0, alpha = alpha, Trimm = percTrimm, data1 = data1)
table(Dout$NN[1,])
Dout$Cost
Dout$klBest
Dout$indivTrimmed
Run the code above in your browser using DataLab