Subroutine Coverage
| blib/lib/AI/ParticleSwarmOptimization.pm |
|
| Criterion |
Covered |
Total |
% |
| subroutine |
24 |
27 |
88.8
|
| pod |
7 |
8 |
87.5
|
| line |
count |
pod |
subroutine |
|
3
|
1 |
n/a |
BEGIN |
|
4
|
1 |
n/a |
BEGIN |
|
5
|
1 |
n/a |
BEGIN |
|
13
|
1 |
n/a |
BEGIN |
|
14
|
1 |
n/a |
BEGIN |
|
15
|
1 |
n/a |
BEGIN |
|
16
|
1 |
n/a |
BEGIN |
|
17
|
1 |
n/a |
BEGIN |
|
20
|
3 |
Yes |
new |
|
29
|
20 |
Yes |
setParams |
|
104
|
10 |
Yes |
init |
|
144
|
1 |
Yes |
optimize |
|
153
|
0 |
Yes |
getBestParticles |
|
164
|
0 |
Yes |
getParticleBestPos |
|
174
|
1 |
Yes |
getIterationCount |
|
181
|
0 |
No |
getSeed |
|
188
|
10 |
n/a |
_initParticles |
|
198
|
39 |
n/a |
_initParticle |
|
225
|
9117 |
n/a |
_calcPosFit |
|
232
|
1 |
n/a |
_swarm |
|
266
|
300 |
n/a |
_moveParticles |
|
298
|
1986 |
n/a |
_saveBest |
|
319
|
10986 |
n/a |
_betterFit |
|
326
|
300 |
n/a |
_updateVelocities |
|
360
|
9039 |
n/a |
_calcNextPos |
|
378
|
54198 |
n/a |
_randInRange |
|
384
|
9000 |
n/a |
_getBestNeighbour |