From a6b4a778d1b70e0e72bb9beaaecd99bded97e4f4 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 14 Oct 2026 20:41:00 +0000 Subject: [PATCH] docs: add missing JSDoc example to `stats/lowess` Added an `@example` block to the main function JSDoc in `lib/main.js` (present in 56 of 57, or 98%, of `@stdlib/stats` siblings). `lowess` was omitted from the recent sweep which added examples to `anova1`, `binomial-test`, `ttest2`, and `ztest2`. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QwjLXc44QKrGGim1D59r9Q --- lib/node_modules/@stdlib/stats/lowess/lib/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/node_modules/@stdlib/stats/lowess/lib/main.js b/lib/node_modules/@stdlib/stats/lowess/lib/main.js index 91b599b7d468..f6123720ceb0 100644 --- a/lib/node_modules/@stdlib/stats/lowess/lib/main.js +++ b/lib/node_modules/@stdlib/stats/lowess/lib/main.js @@ -64,6 +64,13 @@ function ascending( a, b ) { * @throws {TypeError} second argument must be a numeric array * @throws {RangeError} first and second arguments must have the same length * @returns {Object} ordered x-values and fitted values +* +* @example +* var x = [ 4, 4, 7, 7, 8, 9, 10, 10, 10, 11 ]; +* var y = [ 2, 10, 4, 22, 16, 10, 18, 26, 34, 17 ]; +* +* var out = main( x, y ); +* // returns {...} */ function main( x, y, options ) { var nsteps;