Journals
Publish with us
Publishing partnerships
About us
Blog
Computational and Mathematical Methods in Medicine
Journal overview
For authors
For reviewers
For editors
Table of Contents
Special Issues
Computational and Mathematical Methods in Medicine
/
2017
/
Article
/
Alg 1
/
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