Skip to content

Commit eab8041

Browse files
chore: minor clean up
1 parent 4096cc8 commit eab8041

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The function has the following parameters:
6868

6969
- **N**: number of indexed elements.
7070
- **x**: input [`Float64Array`][@stdlib/array/float64].
71-
- **stride**: index increment for `x`.
71+
- **strideX**: stride length for `x`.
7272

7373
The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to compute the [arithmetic mean][arithmetic-mean] of every other element in `x`,
7474

@@ -183,13 +183,13 @@ console.log( v );
183183

184184
#### stdlib_strided_dnanmeanpn( N, \*X, strideX )
185185

186-
Computes arithmetic mean of a double-precision floating-point strided array `x`, ignoring `NaN` values and using a two-pass error correction algorithm.
186+
Computes arithmetic mean of a double-precision floating-point strided array, ignoring `NaN` values and using a two-pass error correction algorithm.
187187

188188
```c
189189
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 };
190190

191191
double v = stdlib_strided_dnanmeanpn( 6, x, 2 );
192-
// returns 4.66
192+
// returns 4.6667
193193
```
194194
195195
The function accepts the following arguments:
@@ -210,7 +210,7 @@ Computes the aithmetic mean of a double-precision floating-point strided array,
210210
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 };
211211

212212
double v = stdlib_strided_dnanmeanpn( 6, x, 2, 0 );
213-
// returns 4.66
213+
// returns 4.6667
214214
```
215215
216216
The function accepts the following arguments:

lib/node_modules/@stdlib/stats/base/dnanmeanpn/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,3 @@
9797
}
9898
]
9999
}
100-

lib/node_modules/@stdlib/stats/base/dnanmeanpn/src/addon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3535
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3636
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
3737
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
38-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_strided_dnanmeanpn( N, X, strideX ), v );
38+
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX( stdlib_strided_dnanmeanpn )( N, X, strideX ), v );
3939
return v;
4040
}
4141

@@ -52,7 +52,7 @@ static napi_value addon_method( napi_env env, napi_callback_info info ) {
5252
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
5353
STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 3 );
5454
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
55-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_strided_dnanmeanpn_ndarray( N, X, strideX, offsetX ), v );
55+
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX( stdlib_strided_dnanmeanpn_ndarray )( N, X, strideX, offsetX ), v );
5656
return v;
5757
}
5858

0 commit comments

Comments
 (0)