syntax change
This commit is contained in:
parent
effe506b45
commit
16887c9712
11
src/model.rs
11
src/model.rs
@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user