Skip to content

Commit f47905a

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent 7ab9228 commit f47905a

File tree

1 file changed

+4
-6
lines changed
  • lib/node_modules/@stdlib/stats/base/nanvarianceyc/docs

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Computes the variance of a strided array ignoring `NaN` values and using a
44
one-pass algorithm proposed by Youngs and Cramer.
55

6-
The `N` and stride parameters determine which elements in the strided
7-
array are accessed at runtime.
6+
The `N` and stride parameters determine which elements in the strided array
7+
are accessed at runtime.
88

99
Indexing is relative to the first index. To introduce an offset, use a typed
1010
array view.
@@ -51,15 +51,13 @@
5151

5252
// Using `N` and `stride` parameters:
5353
> x = [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0 ];
54-
> var strideX = 2;
55-
> {{alias}}( 3, 1, x, strideX )
54+
> {{alias}}( 3, 1, x, 2 )
5655
~4.3333
5756

5857
// Using view offsets:
5958
> var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ] );
6059
> var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
61-
> strideX = 2;
62-
> {{alias}}( 3, 1, x1, strideX )
60+
> {{alias}}( 3, 1, x1, 2 )
6361
~4.3333
6462

6563

0 commit comments

Comments
 (0)