From 75d090d22c24a2f2aaf6e14c442a746675e58c4a Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Mon, 11 Mar 2024 20:09:05 -0400 Subject: [PATCH] Apply suggestions from code review Signed-off-by: Philipp Burckhardt --- .../@stdlib/stats/base/dists/rayleigh/README.md | 10 +++++----- .../stats/base/dists/rayleigh/examples/index.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/README.md b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/README.md index 4355a1ee736..5a601a6e8e7 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/README.md @@ -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; @@ -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; @@ -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 ``` diff --git a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/examples/index.js index 0fbb9945f50..9816c8a233b 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/examples/index.js +++ b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/examples/index.js @@ -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; @@ -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; @@ -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