syntax change

This commit is contained in:
Simon Gardling 2025-03-28 17:37:00 -04:00
parent effe506b45
commit 16887c9712
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -64,11 +64,14 @@ impl Model {
for i in 0..n_populations {
attraction_table.push(Vec::with_capacity(n_populations));
for j in 0..n_populations {
attraction_table[i].push(if i == j {
attraction_distr.sample(&mut rng)
attraction_table[i].push(
if i == j {
&attraction_distr
} else {
repulsion_distr.sample(&mut rng)
});
&repulsion_distr
}
.sample(&mut rng),
);
}
}