~ruther/ctu-fee-eoa

7898936d030ef9d5accaa4555a1752a5c71ef626 — Rutherther a month ago 49d82c7
chore: update explanation comment
1 files changed, 1 insertions(+), 1 deletions(-)

M env/src/selection.rs
M env/src/selection.rs => env/src/selection.rs +1 -1
@@ 40,7 40,7 @@ impl TournamentSelection {
        // let's say p = 0.7
        // the best has probability 0.7 of being selected
        // if the best is not selected, the second has 0.7 probability of being selected... (that's 0.7 * 0.3 without conditions)
        // and so on. The last element has the remaining probability.
        // and so on. The last element is selected if none of the previous were.
        for i in 0..k-1 {
            if p_selector <= p {
                selected = i;