Skip to content

Commit

Permalink
chore: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Oct 30, 2024
1 parent b3a8e50 commit b93aab6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/random/iter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ The namespace contains the following functions for creating iterator protocol-co
```javascript
var roundn = require( '@stdlib/math/base/special/roundn' );
var mean = require( '@stdlib/stats/base/mean' );
var iterator = require( '@stdlib/random/iter' );
var iter = require( '@stdlib/random/iter' );

var initialPrice = 100.0;
var currentPrice = initialPrice;
var numDays = 30;
var volatility = 0.02; // 2% daily volatility

// Create iterator for random price movements:
var priceIter = iterator.normal( 0.0, volatility );
var priceIter = iter.normal( 0.0, volatility );
var prices = [ initialPrice ];
var dailyReturns = [];

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/random/iter/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

var roundn = require( '@stdlib/math/base/special/roundn' );
var mean = require( '@stdlib/stats/base/mean' );
var iterator = require( './../lib' );
var iter = require( './../lib' );

var initialPrice = 100.0;
var currentPrice = initialPrice;
var numDays = 30;
var volatility = 0.02; // 2% daily volatility

// Create iterator for random price movements:
var priceIter = iterator.normal( 0.0, volatility );
var priceIter = iter.normal( 0.0, volatility );
var prices = [ initialPrice ];
var dailyReturns = [];

Expand Down

0 comments on commit b93aab6

Please sign in to comment.