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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1d7a8657803ffdd0acdb52da40b299a3cc5e80c3c46c93b268778647efe0dd9
4
- data.tar.gz: ac9ed9dceceee83e5d1d09a387c77cd040392e620008b647898c9c9f64525443
3
+ metadata.gz: 0532fb9baf1e50fd274dbc6417e1753752c5a626d716398c35a6d400b84132e6
4
+ data.tar.gz: fabb8cfd090f9abc09670aa4254d4153f324d55527229721968a2c7c41545c43
5
5
  SHA512:
6
- metadata.gz: 7a0efa4e5a7664c03a8df28f04a4a9746824710a4b00a1c0346ae3ab4014090e08399d26caf1c466cae66983e1e3be853d45b7cd1261d4a51c4b8e03268946e3
7
- data.tar.gz: f3c781d7ab7d25bdaaa04110ad96d8a231b221e3a40b7d3120b9791b6cb15ad60cceeecf8edf79ad6e50053f4db3b0bc4bec3fa663febf00d4a2e2201ab9a422
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);
@@ -3,5 +3,5 @@
3
3
  # gem yank tarf_monte_carlo -v 2.3
4
4
 
5
5
  module TarfMonteCarlo
6
- VERSION = "3.0"
6
+ VERSION = "3.1"
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.0'
4
+ version: '3.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek Routh