From 692c67c02defee0123a0794991b1ec8965b6ec84 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Sun, 5 Jul 2026 08:23:40 +0000 Subject: [PATCH 1/2] docs: correct equation label and alt-text in `stats/base/dists/betaprime/mode` The README's equation `label`, `data-equation`, and image `alt` attributes were copy-pasted from the `mean` sibling and never renamed, describing the mode as an expected value while the rendered LaTeX and SVG correctly show the mode piecewise formula. Ten of eleven sibling packages in the namespace name the equation after the package's own function; align `mode` with that pattern by replacing `eq:betaprime_expectation` with `eq:betaprime_mode` and updating both `alt` attributes to "Mode for a beta prime distribution.". The SVG filename and pinned CDN URL are left alone so the image reference continues to resolve at the historical commit. --- .../@stdlib/stats/base/dists/betaprime/mode/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/betaprime/mode/README.md b/lib/node_modules/@stdlib/stats/base/dists/betaprime/mode/README.md index 74038a6be888..6982d1827388 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/betaprime/mode/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/betaprime/mode/README.md @@ -28,14 +28,14 @@ limitations under the License. The [mode][mode] for a [beta prime][betaprime-distribution] random variable is - + ```math \mathop{\mathrm{mode}}(X) = \begin{cases}\frac{\alpha-1}{\beta+1} & \text{ if } \alpha \ge 1 \\ 0 & \text{ otherwise }\end{cases} ``` - From 476dde511d3bd88ebe414261da79adfdc74901ea Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Sun, 5 Jul 2026 08:23:48 +0000 Subject: [PATCH 2/2] docs: rename TypeScript test binding to `variance` in `stats/base/dists/betaprime/variance` The type test file was byte-identical to the `stdev` sibling: `./index` was aliased as `stdev` and every `$ExpectType`/`$ExpectError` call site used that name. Ten of eleven sibling packages bind `./index` to their own function name in `docs/types/test.ts`; rename the alias and its call sites to `variance` so the type test reads as belonging to this package. The imported module is unchanged, so dtslint assertions still exercise the same declarations. --- .../betaprime/variance/docs/types/test.ts | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/betaprime/variance/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/betaprime/variance/docs/types/test.ts index 40a47bd4cdac..a15fe03f4139 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/betaprime/variance/docs/types/test.ts +++ b/lib/node_modules/@stdlib/stats/base/dists/betaprime/variance/docs/types/test.ts @@ -16,41 +16,41 @@ * limitations under the License. */ -import stdev = require( './index' ); +import variance = require( './index' ); // TESTS // // The function returns a number... { - stdev( 8, 5 ); // $ExpectType number + variance( 8, 5 ); // $ExpectType number } // The compiler throws an error if the function is provided values other than two numbers... { - stdev( true, 3 ); // $ExpectError - stdev( false, 2 ); // $ExpectError - stdev( '5', 1 ); // $ExpectError - stdev( [], 1 ); // $ExpectError - stdev( {}, 2 ); // $ExpectError - stdev( ( x: number ): number => x, 2 ); // $ExpectError - - stdev( 9, true ); // $ExpectError - stdev( 9, false ); // $ExpectError - stdev( 5, '5' ); // $ExpectError - stdev( 8, [] ); // $ExpectError - stdev( 9, {} ); // $ExpectError - stdev( 8, ( x: number ): number => x ); // $ExpectError - - stdev( [], true ); // $ExpectError - stdev( {}, false ); // $ExpectError - stdev( false, '5' ); // $ExpectError - stdev( {}, [] ); // $ExpectError - stdev( '5', ( x: number ): number => x ); // $ExpectError + variance( true, 3 ); // $ExpectError + variance( false, 2 ); // $ExpectError + variance( '5', 1 ); // $ExpectError + variance( [], 1 ); // $ExpectError + variance( {}, 2 ); // $ExpectError + variance( ( x: number ): number => x, 2 ); // $ExpectError + + variance( 9, true ); // $ExpectError + variance( 9, false ); // $ExpectError + variance( 5, '5' ); // $ExpectError + variance( 8, [] ); // $ExpectError + variance( 9, {} ); // $ExpectError + variance( 8, ( x: number ): number => x ); // $ExpectError + + variance( [], true ); // $ExpectError + variance( {}, false ); // $ExpectError + variance( false, '5' ); // $ExpectError + variance( {}, [] ); // $ExpectError + variance( '5', ( x: number ): number => x ); // $ExpectError } // The compiler throws an error if the function is provided insufficient arguments... { - stdev(); // $ExpectError - stdev( 3 ); // $ExpectError + variance(); // $ExpectError + variance( 3 ); // $ExpectError }