Research Article

Interactive -Means Clustering Method Based on User Behavior for Different Analysis Target in Medicine

Algorithm 1

PSO algorithm to find the optimal combination of the weights.
Procedure PSO
for each particle
  Initialize particle by giving velocity and position
  Initialize pbest and gBest
  Evaluate by calculating fitness value according to formula (5)
end for
  
do
  for each particle
   if
     ;
   if fitness(pBest)>=fitness(gBest)
    ;
  end for
  for each particle
    Update the velocity and position of
  end for
While maximum iterations
End procedure