Skip to content

Commit

Permalink
[dos.rs] fix bug in smearing method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionizing committed Mar 25, 2022
1 parent c191da5 commit cb44c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/dos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl Dos {
ret.iter_mut()
.zip(x.iter())
.for_each(|(y, x)| {
*y += ((-x-mus[c]).powi(2) * inv_two_sgm_sqr).exp() * inv_sgm_sqrt2pi * scales[c];
*y += (-(x-mus[c]).powi(2) * inv_two_sgm_sqr).exp() * inv_sgm_sqrt2pi * scales[c];
});
}

Expand Down

0 comments on commit cb44c49

Please sign in to comment.