tarf_monte_carlo 3.1 → 3.2
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 +9 -9
- 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: 19779d73318aeb56d320baa85cf0336c417c5267a9ce080272f2d18c47b06be5
|
4
|
+
data.tar.gz: 78a64e49d31588e6fdb589803850f650d6350ebc0e5daf21e30e2d949f01da4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd7966fcf228352b5ca765f5a5e0b1aae4dfa9ca471855d23096b1751ff6a5e782382357ff2f546fb5ef7d813b50b69c8054b5ecf0aa4e4cd0d49dc4698724f8
|
7
|
+
data.tar.gz: 82fd773ed3614fe2634572e57718f67fd1f1808bac78d4bcd6a82da5dde94a6283fbc9ce318d82090279ebc036129b5d4aad9f356f2406397542facd5ac65401
|
@@ -353,23 +353,23 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) {
|
|
353
353
|
// return both payoffs
|
354
354
|
//
|
355
355
|
rb_p(rb_str_new2("Converting metrics"));
|
356
|
-
VALUE final_metrics = rb_ary_new();
|
357
|
-
for(metric = 0; metric < DATAPOINTS; metric++) {
|
358
|
-
|
356
|
+
// VALUE final_metrics = rb_ary_new();
|
357
|
+
// for(metric = 0; metric < DATAPOINTS; metric++) {
|
358
|
+
// VALUE leg_metrics = rb_ary_new();
|
359
359
|
|
360
|
-
|
361
|
-
|
362
|
-
|
360
|
+
// for(leg = 0; leg < NL; leg++) {
|
361
|
+
// rb_ary_push( leg_metrics, DBL2NUM( metrics[metric][leg] ) );
|
362
|
+
// }
|
363
363
|
|
364
|
-
|
365
|
-
}
|
364
|
+
// rb_ary_push(final_metrics, leg_metrics);
|
365
|
+
// }
|
366
366
|
|
367
367
|
rb_p(rb_str_new2("Generating output hash"));
|
368
368
|
VALUE final_pvs = rb_hash_new();
|
369
369
|
rb_hash_aset(final_pvs, rb_str_new2("positive_pv"), DBL2NUM( pvs_pos_sum / SCount ));
|
370
370
|
rb_hash_aset(final_pvs, rb_str_new2("negative_pv"), DBL2NUM( pvs_neg_sum / SCount ));
|
371
371
|
rb_hash_aset(final_pvs, rb_str_new2("total_pv"), DBL2NUM( (pvs_neg_sum + pvs_pos_sum) / SCount ));
|
372
|
-
rb_hash_aset(final_pvs, rb_str_new2("metrics"), final_metrics);
|
372
|
+
// rb_hash_aset(final_pvs, rb_str_new2("metrics"), final_metrics);
|
373
373
|
|
374
374
|
//
|
375
375
|
// free your arrays from memory once you're done using them
|