Skip to content

Commit ef20dda

Browse files
committed
fix: update examples in README and REPL for nanvariancech
--- 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: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - 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 40d18bb commit ef20dda

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/stats/base/nanvariancech/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var nanvariancech = require( '@stdlib/stats/base/nanvariancech' );
100100

101101
#### nanvariancech( N, correction, x, strideX )
102102

103-
Computes the [variance][variance] of a strided array `x` ignoring `NaN` values and using a one-pass trial mean algorithm.
103+
Computes the [variance][variance] of a strided array ignoring `NaN` values and using a one-pass trial mean algorithm.
104104

105105
```javascript
106106
var x = [ 1.0, -2.0, NaN, 2.0 ];
@@ -146,7 +146,7 @@ Computes the [variance][variance] of a strided array ignoring `NaN` values and u
146146
```javascript
147147
var x = [ 1.0, -2.0, NaN, 2.0 ];
148148

149-
var v = nanvariancech.ndarray( 4, 1, x, 1, 0 );
149+
var v = nanvariancech.ndarray( x.length, 1, x, 1, 0 );
150150
// returns ~4.33333
151151
```
152152

lib/node_modules/@stdlib/stats/base/nanvariancech/docs/repl.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
--------
4747
// Standard Usage:
4848
> var x = [ 1.0, -2.0, NaN, 2.0 ];
49-
> {{alias}}( 4, 1, x, 1 )
49+
> {{alias}}( x.length, 1, x, 1 )
5050
~4.3333
5151

52-
// Using `N` and `stride` parameters:
52+
// Using `N` and stride parameters:
5353
> x = [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0, NaN, NaN ];
5454
> {{alias}}( 4, 1, x, 2 )
5555
~4.3333
@@ -105,7 +105,7 @@
105105
--------
106106
// Standard Usage:
107107
> var x = [ 1.0, -2.0, NaN, 2.0 ];
108-
> {{alias}}.ndarray( 4, 1, x, 1, 0 )
108+
> {{alias}}.ndarray( x.length, 1, x, 1, 0 )
109109
~4.3333
110110

111111
// Using offset parameter:

0 commit comments

Comments
 (0)