tarf_monte_carlo 3.0 → 3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/tarf_monte_carlo/tarf_monte_carlo.c +3 -1
- data/lib/tarf_monte_carlo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0532fb9baf1e50fd274dbc6417e1753752c5a626d716398c35a6d400b84132e6
|
4
|
+
data.tar.gz: fabb8cfd090f9abc09670aa4254d4153f324d55527229721968a2c7c41545c43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f4066f45c081f69bc871b00b73d7f69682df2cbe9958e43161c0fab577ac53aa2d8d5c78c44c7903abdc09d6d317ecb6ac306d318a1f427fad4b82c2248c65d
|
7
|
+
data.tar.gz: 0424a8f66294c1c1a3a4a6aa8fda3850c0397f0fb6ba071adc423386001f4656903639ec9951e31d163848449ac927972e23291e45ef7dd4c04077d601226ded
|
@@ -324,19 +324,21 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) {
|
|
324
324
|
}
|
325
325
|
}
|
326
326
|
// run simulations loop
|
327
|
+
rb_p(rb_str_new2("Simulation loop done"));
|
327
328
|
|
328
329
|
//
|
329
330
|
// sum all final +ve and -ve payoffs
|
330
331
|
//
|
332
|
+
rb_p(rb_str_new2("Calculating final PVs"));
|
331
333
|
for(sim_count = 0; sim_count < SCount; ++sim_count) {
|
332
334
|
pvs_pos_sum += *(pvs_pos + sim_count);
|
333
335
|
pvs_neg_sum += *(pvs_neg + sim_count);
|
334
336
|
}
|
335
337
|
|
336
|
-
rb_p(rb_str_new2("Simulation loop done"));
|
337
338
|
//
|
338
339
|
// free dynamically alloted heap memory
|
339
340
|
//
|
341
|
+
rb_p(rb_str_new2("Free allocated arrays"));
|
340
342
|
free(pvs_pos);
|
341
343
|
free(pvs_neg);
|
342
344
|
free(Ls_array);
|