Skip to content

Commit 3919f70

Browse files
fix: example error
1 parent f2c70ba commit 3919f70

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,20 +256,20 @@ double stdlib_strided_dnanmeanpn_ndarray( const CBLAS_INT N, const double *X, co
256256
#include <stdio.h>
257257

258258
int main( void ) {
259-
// Create a strided array:
260-
const double x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 };
259+
// Create a strided array:
260+
const double x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 };
261261

262-
// Specify the number of elements:
263-
const int N = 6;
262+
// Specify the number of elements:
263+
const int N = 6;
264264

265-
// Specify the stride length:
266-
const int strideX = 2;
265+
// Specify the stride length:
266+
const int strideX = 2;
267267

268-
// Compute the arithmetic mean:
269-
double v = stdlib_strided_dnanmeanpn( N, x, strideX );
268+
// Compute the arithmetic mean:
269+
double v = stdlib_strided_dnanmeanpn( N, x, strideX );
270270

271-
// Print the result:
272-
printf( "mean: %lf\n", v );
271+
// Print the result:
272+
printf( "mean: %lf\n", v );
273273
}
274274
```
275275

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
x: Float64Array
6767
Input array.
6868

69-
stride: integer
69+
strideX: integer
7070
Stride Length.
7171

7272
offsetX: integer

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
* var Float64Array = require( '@stdlib/array/float64' );
4343
*
4444
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] );
45-
*
46-
* var v = dnanmeanpn( 5, x, 2, 1 );
47-
* // returns 1.25
4845
*/
4946
function dnanmeanpn( N, x, strideX, offsetX ) {
5047
var ix;

lib/node_modules/@stdlib/stats/base/dnanmeanpn/lib/ndarray.native.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ var addon = require( './../src/addon.node' );
3838
* var Float64Array = require( '@stdlib/array/float64' );
3939
*
4040
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] );
41-
*
42-
* var v = dnanmeanpn( 5, x, 2, 1 );
43-
* // returns 1.25
4441
*/
4542
function dnanmeanpn( N, x, strideX, offsetX ) {
4643
return addon.ndarray( N, x, strideX, offsetX );

0 commit comments

Comments
 (0)