repulstion_distr -> repulsion_distr

This commit is contained in:
Simon Gardling 2025-03-28 17:35:21 -04:00
parent 492c527498
commit effe506b45
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -57,7 +57,7 @@ impl Model {
let attraction_distr = let attraction_distr =
Normal::new(Self::ATTRACTION_FACTOR_MEAN, Self::ATTRACTION_FACTOR_STD).unwrap(); Normal::new(Self::ATTRACTION_FACTOR_MEAN, Self::ATTRACTION_FACTOR_STD).unwrap();
let repulstion_distr = let repulsion_distr =
Normal::new(Self::REPULSION_FACTOR_MEAN, Self::REPULSION_FACTOR_STD).unwrap(); Normal::new(Self::REPULSION_FACTOR_MEAN, Self::REPULSION_FACTOR_STD).unwrap();
let mut attraction_table = Vec::with_capacity(n_populations); let mut attraction_table = Vec::with_capacity(n_populations);
@ -67,7 +67,7 @@ impl Model {
attraction_table[i].push(if i == j { attraction_table[i].push(if i == j {
attraction_distr.sample(&mut rng) attraction_distr.sample(&mut rng)
} else { } else {
repulstion_distr.sample(&mut rng) repulsion_distr.sample(&mut rng)
}); });
} }
} }