From 5bb710ea47e12b3a06c71882a18c0cef6fa60626 Mon Sep 17 00:00:00 2001 From: aayush0325 Date: Mon, 20 Jan 2025 14:18:13 +0000 Subject: [PATCH] docs: update examples --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/stats/base/snanmeanors/docs/repl.txt | 10 +++++----- .../@stdlib/stats/base/snanmeanors/lib/index.js | 4 ++-- .../@stdlib/stats/base/snanmeanors/lib/ndarray.js | 4 ++-- .../stats/base/snanmeanors/lib/ndarray.native.js | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/snanmeanors/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/snanmeanors/docs/repl.txt index 76ea53e6660..543d596d63e 100644 --- a/lib/node_modules/@stdlib/stats/base/snanmeanors/docs/repl.txt +++ b/lib/node_modules/@stdlib/stats/base/snanmeanors/docs/repl.txt @@ -38,13 +38,13 @@ // Using `N` and stride parameters: > x = new {{alias:@stdlib/array/float32}}( [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0, NaN ] ); - > {{alias}}( 3, x, 2 ) + > {{alias}}( 4, x, 2 ) ~0.3333 // Using view offsets: - > var x0 = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN ] ); + > var x0 = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN, NaN ] ); > var x1 = new {{alias:@stdlib/array/float32}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); - > {{alias}}( 3, x1, 2 ) + > {{alias}}( 4, x1, 2 ) ~-0.3333 @@ -84,8 +84,8 @@ ~0.3333 // Using offset parameter: - > var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN ] ); - > {{alias}}.ndarray( 3, x, 2, 1 ) + > var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN, NaN ] ); + > {{alias}}.ndarray( 4, x, 2, 1 ) ~-0.3333 See Also diff --git a/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/index.js b/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/index.js index 1a81f87a982..697281d7ffd 100644 --- a/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/index.js +++ b/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/index.js @@ -36,9 +36,9 @@ * var Float32Array = require( '@stdlib/array/float32' ); * var snanmeanors = require( '@stdlib/stats/base/snanmeanors' ); * -* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] ); +* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] ); * -* var v = snanmeanors.ndarray( 4, x, 2, 1 ); +* var v = snanmeanors.ndarray( 5, x, 2, 1 ); * // returns 1.25 */ diff --git a/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/ndarray.js b/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/ndarray.js index b5c586d293e..c39deee92c6 100644 --- a/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/ndarray.js +++ b/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/ndarray.js @@ -37,9 +37,9 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); * @example * var Float32Array = require( '@stdlib/array/float32' ); * -* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] ); +* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] ); * -* var v = snanmeanors( 4, x, 2, 1 ); +* var v = snanmeanors( 5, x, 2, 1 ); * // returns 1.25 */ function snanmeanors( N, x, strideX, offsetX ) { diff --git a/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/ndarray.native.js b/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/ndarray.native.js index 4528886b7c1..a5b27abc18f 100644 --- a/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/ndarray.native.js +++ b/lib/node_modules/@stdlib/stats/base/snanmeanors/lib/ndarray.native.js @@ -37,9 +37,9 @@ var addon = require( './../src/addon.node' ); * @example * var Float32Array = require( '@stdlib/array/float32' ); * -* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] ); +* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] ); * -* var v = snanmeanors( 4, x, 2, 1 ); +* var v = snanmeanors( 5, x, 2, 1 ); * // returns 1.25 */ function snanmeanors( N, x, strideX, offsetX ) {