Research Article
Cancer Feature Selection and Classification Using a Binary Quantum-Behaved Particle Swarm Optimization and Support Vector Machine
Pseudocode 1
Pseudocode for obtaining mbest.
Get_mbest(pbest) | for to (the length of binary string) | sum = 0; | for each particle i | sum = sum + pbest[][]; | endfor | avg = sum/; | if avg > 0.5 mbest[] = 1; endif | if avg < 0.5 mbest[] = 0; endif | if avg = 0.5 | if rand() < 0.5 mbest[] = 0; | else mbest[] = 1; | endif | endif | endfor | Return mbest |
|