Skip to content

Commit

Permalink
lint fix-2
Browse files Browse the repository at this point in the history
  • Loading branch information
rhandal-pfn committed Aug 27, 2024
1 parent eb05b9d commit 43aec5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pfhedge/stochastic/merton_jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def generate_merton_jump(
- (sigma ** 2) / 2
- jump_per_year * (math.exp(jump_mean + jump_std ** 2 / 2) - 1)
)
* dt
* torch.arange(n_steps).to(randn)
)
* dt
* torch.arange(n_steps).to(randn)
)
brown = randn.cumsum(1) * math.sqrt(dt)
return init_state[0] * (drift + sigma * brown + jump.cumsum(1)).exp()

0 comments on commit 43aec5f

Please sign in to comment.