blib/lib/AI/PSO.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
subroutine | 18 | 19 | 94.7 |
pod | 4 | 15 | 26.6 |
line | count | pod | subroutine |
---|---|---|---|
3 | 1 | n/a | BEGIN |
4 | 1 | n/a | BEGIN |
5 | 1 | n/a | BEGIN |
6 | 1 | n/a | BEGIN |
100 | 2 | Yes | pso_set_params |
145 | 2 | Yes | pso_register_fitness_function |
156 | 2 | Yes | pso_optimize |
164 | 2 | Yes | pso_get_solution_array |
180 | 2 | No | init |
194 | 2 | No | initialize_particles |
221 | 0 | No | initialize_neighbors |
230 | 2 | No | dump_particle |
256 | 2 | No | swarm |
353 | 2 | No | save_solution |
369 | 641 | No | compute_fitness |
392 | 768 | No | random |
406 | 276 | No | get_index_of_neighbor |
417 | 92 | No | get_index_of_best_fit_neighbor |
437 | 368 | No | clamp_velocity |