tarf_monte_carlo 2.3.8 → 2.3.9
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 +2 -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: 91df36cb924d72c2357fc64a0ab283f9b9d5dcd2bd28134d1abc0503341ea48a
|
4
|
+
data.tar.gz: 6c4568c45e4d8c76574285c57be890a72931a7f26ba0a3dbd655db9db6838557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa50980f51beadf7fa8f9922701becb94bee4b1d68ba4a45e3baf11521103fab573f85b22ff930d0b930c02f858cf65c426e59c5c522b81564693b7b8fb30289
|
7
|
+
data.tar.gz: 8d1278111cc472a5d7d0d28b6e3233f24e0bcbd4b7453c31e0e450173c29c15f9574ea3faec46e1be7ccdb6001ebff10374daf58c94058e8d02f76c6e47c5b53
|
@@ -320,7 +320,6 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) {
|
|
320
320
|
// increment metric storing point by 4
|
321
321
|
//
|
322
322
|
if( (sim_count + 2) % INTERVAL == 0 ) {
|
323
|
-
rb_p(rb_str_new2("True condition"));
|
324
323
|
point_pos += 4;
|
325
324
|
}
|
326
325
|
}
|
@@ -334,6 +333,7 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) {
|
|
334
333
|
pvs_neg_sum += *(pvs_neg + sim_count);
|
335
334
|
}
|
336
335
|
|
336
|
+
rb_p(rb_str_new2("Simulation loop done"));
|
337
337
|
//
|
338
338
|
// free dynamically alloted heap memory
|
339
339
|
//
|
@@ -350,6 +350,7 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) {
|
|
350
350
|
//
|
351
351
|
// return both payoffs
|
352
352
|
//
|
353
|
+
rb_p(rb_str_new2("Pushing final values"));
|
353
354
|
VALUE final_metrics = rb_ary_new();
|
354
355
|
for(metric = 0; metric < DATAPOINTS; metric++) {
|
355
356
|
VALUE leg_metrics = rb_ary_new();
|