Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Burckhardt <[email protected]>
  • Loading branch information
Planeshifter authored Mar 12, 2024
1 parent a6783fe commit 75d090d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/stats/base/dists/rayleigh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ var y = dist.pdf( 0.8 );
var rayleigh = require( '@stdlib/stats/base/dists/rayleigh' );

/*
* The Rayleigh distribution is often used to model wind speeds.
* Let's consider a scenario where we want to estimate various properties related to wind speeds.
*/
* The Rayleigh distribution can be used to model wind speeds.
* Let's consider a scenario where we want to estimate various properties related to wind speeds.
*/

// Set the Rayleigh distribution parameter (scale parameter):
var s = 10.0;
Expand All @@ -132,7 +132,7 @@ console.log( rayleigh.stdev( s ) );
// Evaluate the Probability Density Function (PDF) for a specific wind speed:
var w = 15.0;
console.log( rayleigh.pdf( w, s ) );
// => 0.04869787010375246
// => ~0.049

// Determine Cumulative Distribution Function (CDF) for wind speeds up to a certain value:
var t = 15.0;
Expand All @@ -146,7 +146,7 @@ console.log( 'Probability of wind speeds exceeding ' + t + ' m/s:', p );
// Find the wind speed at which there's a 70% chance it won't exceed using the Quantile function:
var c = 0.7;
console.log( rayleigh.quantile( c, s ) );
// => 15.517556536555205
// => ~15.518
```

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
var rayleigh = require( './../lib' );

/*
* The Rayleigh distribution is often used to model wind speeds.
* Let's consider a scenario where we want to estimate various properties related to wind speeds.
*/
* The Rayleigh distribution can be used to model wind speeds.
* Let's consider a scenario where we want to estimate various properties related to wind speeds.
*/

// Set the Rayleigh distribution parameter (scale parameter):
var s = 10.0;
Expand All @@ -41,7 +41,7 @@ console.log( rayleigh.stdev( s ) );
// Evaluate the Probability Density Function (PDF) for a specific wind speed:
var w = 15.0;
console.log( rayleigh.pdf( w, s ) );
// => 0.04869787010375246
// => ~0.049

// Determine Cumulative Distribution Function (CDF) for wind speeds up to a certain value:
var t = 15.0;
Expand All @@ -55,4 +55,4 @@ console.log( 'Probability of wind speeds exceeding ' + t + ' m/s:', p );
// Find the wind speed at which there's a 70% chance it won't exceed using the Quantile function:
var c = 0.7;
console.log( rayleigh.quantile( c, s ) );
// => 15.517556536555205
// => ~15.518

0 comments on commit 75d090d

Please sign in to comment.