Skip to content

Commit 28a9149

Browse files
committed
docs: update examples for nanmeanwd
--- 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: na - 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 ---
1 parent ef6284c commit 28a9149

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/stats/base/nanmeanwd/lib/accessors.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
5555
* var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
5656
*
57-
* var x = toAccessorArray( [ 1.0, -2.0, NaN, 2.0 ] );
57+
* var x = toAccessorArray( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
5858
*
59-
* var v = nanmeanwd( x.length, arraylike2object( x ), 1, 0 );
60-
* // returns ~0.3333
59+
* var v = nanmeanwd( 5, arraylike2object( x ), 2, 1 );
60+
* // returns 1.25
6161
*/
6262
function nanmeanwd( N, x, strideX, offsetX ) {
6363
var xbuf;

lib/node_modules/@stdlib/stats/base/nanmeanwd/lib/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727
* var nanmeanwd = require( '@stdlib/stats/base/nanmeanwd' );
2828
*
2929
* var x = [ 1.0, -2.0, NaN, 2.0 ];
30-
* var N = x.length;
3130
*
32-
* var v = nanmeanwd( N, x, 1 );
31+
* var v = nanmeanwd( x.length, x, 1 );
3332
* // returns ~0.3333
3433
*
3534
* @example

lib/node_modules/@stdlib/stats/base/nanmeanwd/lib/ndarray.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ var accessors = require( './accessors.js' );
5555
*
5656
* @example
5757
* var x = [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ];
58+
*
5859
* var v = nanmeanwd( 5, x, 2, 1 );
5960
* // returns 1.25
6061
*/

0 commit comments

Comments
 (0)