From 0b67229a63ca54d7a32ff4697cce3fd9d6869bb3 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 30 Apr 2026 12:38:50 +0000 Subject: [PATCH 1/2] style: align `stats/base/dists/gamma/logcdf` with namespace conventions Restructured the README to match the structural majority pattern used across the `stats/base/dists/gamma` namespace: - Wrapped the C APIs section in `
` (78.6% of siblings). - Promoted `### C APIs` heading to `## C APIs` (78.6% of siblings). - Promoted `#### Usage` heading under C APIs to `### Usage` (78.6% of siblings). - Closed `
` for the JS API before the C APIs section rather than after it; the C APIs content is now a sibling, not nested inside the JS usage wrapper. No content changes; section layout and heading levels only. --- .../stats/base/dists/gamma/logcdf/README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/README.md b/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/README.md index 7b6db4203dfa..8e2e6c8efeda 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/README.md @@ -125,9 +125,17 @@ y = mylogcdf( 4.0 ); // returns ~-0.064 ``` +
+ + + + + * * * -### C APIs +
+ +## C APIs @@ -141,7 +149,7 @@ y = mylogcdf( 4.0 );
-#### Usage +### Usage ```c #include "stdlib/stats/base/dists/gamma/logcdf.h" @@ -220,7 +228,7 @@ int main( void ) {
- +
From 7e40186174c9c776ba45840f820997f528d386af Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 1 May 2026 21:21:51 +0000 Subject: [PATCH 2/2] docs: co-locate JS examples with JS API documentation in `stats/base/dists/gamma/logcdf` Moved the JS `## Examples` section to sit between the JS `## Usage` section and the `## C APIs` section, matching the namespace majority ordering (10/14 siblings) and addressing review feedback that JS examples should be co-located with the documentation for the JS APIs rather than placed after the C interface documentation. No content changes; section ordering only. --- .../stats/base/dists/gamma/logcdf/README.md | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/README.md b/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/README.md index 8e2e6c8efeda..9d969c539e7a 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/README.md @@ -129,6 +129,31 @@ y = mylogcdf( 4.0 ); +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var logcdf = require( '@stdlib/stats/base/dists/gamma/logcdf' ); + +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, ln(f(x;α,β)): %0.4f', x, alpha, beta, logcdf ); +``` + +
+ + + * * * @@ -230,31 +255,6 @@ int main( void ) { -
- -## Examples - - - -```javascript -var uniform = require( '@stdlib/random/array/uniform' ); -var logEachMap = require( '@stdlib/console/log-each-map' ); -var logcdf = require( '@stdlib/stats/base/dists/gamma/logcdf' ); - -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, ln(f(x;α,β)): %0.4f', x, alpha, beta, logcdf ); -``` - -
- - -