Skip to content

Commit bb0045b

Browse files
committed
Minor fixes to Heston model example to reduce memory footprint
1 parent 48cf2b4 commit bb0045b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/financial/heston_model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def simulateHestonModel( T, N, R, mu, kappa, vBar, sigmaV, rho, x0, v0 ) :
6767

6868
def main():
6969
T = 1
70-
nT = 10 * T
70+
nT = 20 * T
7171
R_first = 1000
72-
R = 20000000
72+
R = 5000000
7373

7474
x0 = 0 # initial log stock price
7575
v0 = 0.087**2 # initial volatility

0 commit comments

Comments
 (0)