tarf_monte_carlo 3.21 → 3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 276f4ff7b4eb01c384357328380f3b18d92b08840143aa4e6731fa6bc956af33
4
- data.tar.gz: 9218e8c67cc612d0680d3a3add75b9d45d01e761b30fbdc8be6a5cfe572a0a15
3
+ metadata.gz: e0c41c44926141bcfb2844cf5aeecd360c2562f6680f9d4efaeaf7a0f5081fa4
4
+ data.tar.gz: ac6e38b63727f83e65758da64ab4666261a94522bf5c2c4e1f6768c2e4e23597
5
5
  SHA512:
6
- metadata.gz: f198b43f339a2b9a2d64081c32bbba09e4a2db1889fbce918c80347c7297d421944192a587d56c080716d283414e5baa5aa3425e052f09285247c3a6fb52a1b9
7
- data.tar.gz: 552ec2cd2724a5eec02ad9deae62c3e8a0db8b14793ca990236cceaa0dff1ed3ff0148616a3cc087ab81d8cd3ab654210258d2ef10337488066cbd81b4b866aa
6
+ metadata.gz: 369f864b9d16f6888a04e547e40baea1ff012cab62dfb49167e5e91545238bee800b8159eb3e91b84bbf85cf01e89faf6c6e1f14380a0b6f56df11b3f2a93160
7
+ data.tar.gz: 889ba91d7510b289de991c41d89d8dc766ac2b60c30bb0aa69aac9264e1649ed6517d3c8b123bb88c24559436edc3a3c9ce969a7e6e57ad28ace3c08a94f345e
@@ -212,9 +212,9 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) {
212
212
 
213
213
  if (ConvertNotional == 1){
214
214
  if(Spot < *( Ps_array + leg )){
215
- Ns_array[leg] = DBL2NUM( *(Ns_array + leg) / *( LSts_array + leg ));
215
+ Ns_array[leg] = *(Ns_array + leg) / *( LSts_array + leg );
216
216
  } else {
217
- Ns_array[leg] = DBL2NUM( *(Ns_array + leg) / *( USts_array + leg ));
217
+ Ns_array[leg] = *(Ns_array + leg) / *( USts_array + leg );
218
218
  }
219
219
  }
220
220
 
@@ -365,6 +365,7 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) {
365
365
  } else if( KType == POINTS || KType == PIVOT_POINTS || KType == COLLAR_POINTS || KType == DOUBLE_STRIKE_POINTS ) {
366
366
  for( leg = 0; leg < NL; ++leg ) {
367
367
  // simulation normal
368
+ rb_p(DBL2NUM(*(Ns_array + leg )));
368
369
  if ( ko_so_far > 0.0 ) {
369
370
  if( sim[leg] >= 0.0 ) {
370
371
  // knock out condition
@@ -3,5 +3,5 @@
3
3
  # gem yank tarf_monte_carlo -v 2.3
4
4
 
5
5
  module TarfMonteCarlo
6
- VERSION = "3.21"
6
+ VERSION = "3.22"
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.21'
4
+ version: '3.22'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek Routh