From 1301265343c18f6e8f9f9cccdc928c48126dba45 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 12:16:12 +0000 Subject: [PATCH] docs: move JS examples before C APIs in `stats/base/dists/gamma/cdf` Reorders the README to place the JavaScript `## Examples` section between the JS `## Usage` and `## C APIs` sections, matching the layout used by the other 11 native-addon packages in `stats/base/dists/gamma` (92% conformance: entropy, kurtosis, logcdf, logpdf, mean, mgf, mode, pdf, skewness, stdev, variance). Section content is unchanged; only the block position and an interior `* * *` separator move. --- .../stats/base/dists/gamma/cdf/README.md | 52 +++++++++---------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/gamma/cdf/README.md b/lib/node_modules/@stdlib/stats/base/dists/gamma/cdf/README.md index 21f7e4b0ebfa..009945131c54 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gamma/cdf/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/gamma/cdf/README.md @@ -132,6 +132,31 @@ y = mycdf( 8.0 ); +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var cdf = require( '@stdlib/stats/base/dists/gamma/cdf' ); + +var opts = { + 'dtype': 'float64' +}; +var x = uniform( 10, 0.0, 3.0, opts ); +var alpha = uniform( 10, 0.0, 5.0, opts ); +var beta = uniform( 10, 0.0, 5.0, opts ); + +logEachMap( 'x: %0.4f, α: %0.4f, β: %0.4f, F(x;α,β): %0.4f', x, alpha, beta, cdf ); +``` + +
+ + + * * *
@@ -217,33 +242,6 @@ int main( void ) { -* * * - -
- -## Examples - - - -```javascript -var uniform = require( '@stdlib/random/array/uniform' ); -var logEachMap = require( '@stdlib/console/log-each-map' ); -var cdf = require( '@stdlib/stats/base/dists/gamma/cdf' ); - -var opts = { - 'dtype': 'float64' -}; -var x = uniform( 10, 0.0, 3.0, opts ); -var alpha = uniform( 10, 0.0, 5.0, opts ); -var beta = uniform( 10, 0.0, 5.0, opts ); - -logEachMap( 'x: %0.4f, α: %0.4f, β: %0.4f, F(x;α,β): %0.4f', x, alpha, beta, cdf ); -``` - -
- - -