tarf_monte_carlo 2.3.6 → 2.3.7
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 +4 -4
 - data/ext/tarf_monte_carlo/tarf_monte_carlo.c +3 -3
 - 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: aa905a33aeb61e355c1b91a335d1e1a14703b1c71ce91185c56db4e3b5252c6b
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 96a2ff33019b338dedf3cfae0a8def7f3b0655a18f716aeaae43da687ff68d5f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5f968527f927627230912f9992a17894c62a874bdcdb5a1946bdd66091d65f9e317ff9c82b61dd6c56c54040db8111c63f1ef3102e52b54195e202b29be6ca9b
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 21a2d3bfc5b09af9157d3bccb6cd0a85e232ebfd42aa021435210119b5ad82a2e5bbda77ddd28d56914436bad749403531069ef9f25d61356ab53e171a3c130d
         
     | 
| 
         @@ -179,7 +179,7 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) { 
     | 
|
| 
       179 
179 
     | 
    
         
             
                  //
         
     | 
| 
       180 
180 
     | 
    
         
             
                  // Store spot and spot dash
         
     | 
| 
       181 
181 
     | 
    
         
             
                  //
         
     | 
| 
       182 
     | 
    
         
            -
                  if( (sim_count +  
     | 
| 
      
 182 
     | 
    
         
            +
                  if( (sim_count + 2) % INTERVAL == 0 ) {
         
     | 
| 
       183 
183 
     | 
    
         
             
                    rb_p(rb_str_new2("True condition"));
         
     | 
| 
       184 
184 
     | 
    
         
             
                    metrics[ point_pos ][ leg ] = Spot;
         
     | 
| 
       185 
185 
     | 
    
         
             
                    metrics[ point_pos + 2 ][ leg ] = Spot_dash;
         
     | 
| 
         @@ -300,7 +300,7 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) { 
     | 
|
| 
       300 
300 
     | 
    
         
             
                  //
         
     | 
| 
       301 
301 
     | 
    
         
             
                  // store and send whichever payoff you want
         
     | 
| 
       302 
302 
     | 
    
         
             
                  //
         
     | 
| 
       303 
     | 
    
         
            -
                  if( (sim_count +  
     | 
| 
      
 303 
     | 
    
         
            +
                  if( (sim_count + 2) % INTERVAL == 0 ) {
         
     | 
| 
       304 
304 
     | 
    
         
             
                    metrics[ point_pos + 1 ][ leg ] = sim_pos[leg];
         
     | 
| 
       305 
305 
     | 
    
         
             
                    metrics[ point_pos + 3 ][ leg ] = sim_dash_pos[leg];
         
     | 
| 
       306 
306 
     | 
    
         
             
                  }
         
     | 
| 
         @@ -320,7 +320,7 @@ VALUE method_run_monte_carlo( VALUE self, VALUE args ) { 
     | 
|
| 
       320 
320 
     | 
    
         
             
                //
         
     | 
| 
       321 
321 
     | 
    
         
             
                // increment metric storing point by 4
         
     | 
| 
       322 
322 
     | 
    
         
             
                //
         
     | 
| 
       323 
     | 
    
         
            -
                if( (sim_count +  
     | 
| 
      
 323 
     | 
    
         
            +
                if( (sim_count + 2) % INTERVAL == 0 ) {
         
     | 
| 
       324 
324 
     | 
    
         
             
                  point_pos += 4;
         
     | 
| 
       325 
325 
     | 
    
         
             
                }
         
     | 
| 
       326 
326 
     | 
    
         
             
              }
         
     |