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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0532fb9baf1e50fd274dbc6417e1753752c5a626d716398c35a6d400b84132e6
4
- data.tar.gz: fabb8cfd090f9abc09670aa4254d4153f324d55527229721968a2c7c41545c43
3
+ metadata.gz: 19779d73318aeb56d320baa85cf0336c417c5267a9ce080272f2d18c47b06be5
4
+ data.tar.gz: 78a64e49d31588e6fdb589803850f650d6350ebc0e5daf21e30e2d949f01da4e
5
5
  SHA512:
6
- metadata.gz: 2f4066f45c081f69bc871b00b73d7f69682df2cbe9958e43161c0fab577ac53aa2d8d5c78c44c7903abdc09d6d317ecb6ac306d318a1f427fad4b82c2248c65d
7
- data.tar.gz: 0424a8f66294c1c1a3a4a6aa8fda3850c0397f0fb6ba071adc423386001f4656903639ec9951e31d163848449ac927972e23291e45ef7dd4c04077d601226ded
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
- VALUE leg_metrics = rb_ary_new();
356
+ // VALUE final_metrics = rb_ary_new();
357
+ // for(metric = 0; metric < DATAPOINTS; metric++) {
358
+ // VALUE leg_metrics = rb_ary_new();
359
359
 
360
- for(leg = 0; leg < NL; leg++) {
361
- rb_ary_push( leg_metrics, DBL2NUM( metrics[metric][leg] ) );
362
- }
360
+ // for(leg = 0; leg < NL; leg++) {
361
+ // rb_ary_push( leg_metrics, DBL2NUM( metrics[metric][leg] ) );
362
+ // }
363
363
 
364
- rb_ary_push(final_metrics, leg_metrics);
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
@@ -3,5 +3,5 @@
3
3
  # gem yank tarf_monte_carlo -v 2.3
4
4
 
5
5
  module TarfMonteCarlo
6
- VERSION = "3.1"
6
+ VERSION = "3.2"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarf_monte_carlo
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.1'
4
+ version: '3.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek Routh