Skip to content

Commit

Permalink
0-saveguard not really necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiqwerty committed Aug 28, 2023
1 parent bfb4915 commit efba701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub fn random_walk(
let sigma = last_sigmas[sigma_window_size / 2].abs();
let d = Normal::new(mu, sigma).map_err(to_blc)?;
let monthly_factor = d.sample(&mut monthly_factor_rng);
res[i] = (res[i - 1] * monthly_factor).max(1e-4);
res[i] = res[i - 1] * monthly_factor;

if !is_markovian && sigma - sigma_mean > 0.0 {
let actual_total_return: f64 = (1..=i)
Expand Down

0 comments on commit efba701

Please sign in to comment.