Fly algorithm: Difference between revisions

Content deleted Content added
Fpvidal (talk | contribs)
Fix typos in bibliography
m Pseudocode: Protect "-{" sequence in text or chemical name from preprocessor: phab:T146304, explained. using AWB
Line 75:
15.
16. ''// Compute the population's performance without ''f''<sub>''kill''</sub>''
17. ''G''<sub>''fitness''</sub>(''F''-<nowiki/>{''f''<sub>''kill''</sub>}) &larr; ''Error''<sub>metrics</sub>(''p''<sub>''reference''</sub>, ''p''<sub>''estimated''</sub>)
18.
19. // Compare the performances, i.e. compute the fly's local fitness
20. ''L''<sub>''fitness''</sub>(''f''<sub>''kill''</sub>) &larr; ''G''<sub>''fitness''</sub>(''F''-<nowiki/>{''f''<sub>''kill''</sub>}) - ''G''<sub>''fitness''</sub>(''F'')
21.
22. '''If''' the local fitness is greater than 0, // Thresholded-selection of a bad fly that can be killed
Line 97:
37.
38. ''// Compute the population's performance without ''f''<sub>''reproduce''</sub>''
39. ''G''<sub>''fitness''</sub>(''F''-<nowiki/>{''f''<sub>''reproduce''</sub>}) &larr; ''Error''<sub>metrics</sub>(''p''<sub>''reference''</sub>, ''p''<sub>''estimated''</sub>)
40.
41. // Compare the performances, i.e. compute the fly's local fitness
42. ''L''<sub>''fitness''</sub>(''f''<sub>''reproduce'</sub>) &larr; ''G''<sub>''fitness''</sub>(''F''-<nowiki/>{''f''<sub>''reproduce''</sub>}) - ''G''<sub>''fitness''</sub>(''F'')
43.
44. Restore the fly's contribution'