diff --git a/src/model.rs b/src/model.rs index fa3f0a8..78718a4 100644 --- a/src/model.rs +++ b/src/model.rs @@ -57,7 +57,7 @@ impl Model { let attraction_distr = 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(); let mut attraction_table = Vec::with_capacity(n_populations); @@ -67,7 +67,7 @@ impl Model { attraction_table[i].push(if i == j { attraction_distr.sample(&mut rng) } else { - repulstion_distr.sample(&mut rng) + repulsion_distr.sample(&mut rng) }); } }