Skip to content

Commit 366ef62

Browse files
fix: example errors
1 parent bcf7bf1 commit 366ef62

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
209209
float v = stdlib_strided_dsmeanors_ndarray( 4, x, 2, 0 );
210210
// returns 1.25
211211
```
212+
212213
The function accepts the following arguments:
213214
214215
- **N**: `[in] CBLAS_INT` number of indexed elements.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@
3333
// Standard Usage:
3434
> var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 2.0 ] );
3535
> {{alias}}( x.length, x, 1 )
36-
~NaN
36+
~0.333
3737

3838
// Using `N` and stride parameters:
3939
> x = new {{alias:@stdlib/array/float32}}( [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0 ] );
4040
> {{alias}}( 4, x, 2 )
41-
~NaN
41+
NaN
4242

4343
// Using view offsets:
4444
> var x0 = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ] );
4545
> var x1 = new {{alias:@stdlib/array/float32}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
4646
> {{alias}}( 4, x1, 2 )
47-
~NaN
47+
NaN
4848

4949

5050
{{alias}}.ndarray( N, x, strideX, offsetX )
@@ -85,7 +85,7 @@
8585
// Using offset parameter:
8686
> var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ] );
8787
> {{alias}}.ndarray( 4, x, 2, 1 )
88-
~-1.25
88+
NaN
8989

9090
See Also
9191
--------

0 commit comments

Comments
 (0)