repulstion_distr -> repulsion_distr
This commit is contained in:
parent
492c527498
commit
effe506b45
@ -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)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user