Skip to content

Commit d83eb20

Browse files
chore: minor clean up
1 parent a91b1a5 commit d83eb20

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var v = dsmeanors.ndarray( x.length, x, 1, 0 );
110110

111111
The function has the following additional parameters:
112112

113-
- **offset**: starting index for `x`.
113+
- **offsetX**: starting index for `x`.
114114

115115
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to calculate the [arithmetic mean][arithmetic-mean] for every other element in `x` starting from the second element
116116

@@ -174,7 +174,7 @@ console.log( v );
174174

175175
#### stdlib_strided_dsmeanors( N, \*X, strideX )
176176

177-
Computes the arithmetic mean of a single-precision floating-point strided array `x` using ordinary recursive summation with extended accumulation and returning an extended precision result.
177+
Computes the arithmetic mean of a single-precision floating-point strided array using ordinary recursive summation with extended accumulation and returning an extended precision result.
178178

179179
```c
180180
const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "stdlib/napi/argv_int64.h"
2323
#include "stdlib/napi/argv_strided_float32array.h"
2424
#include "stdlib/napi/create_double.h"
25-
#include <node_api.h>
2625

2726
/**
2827
* Receives JavaScript callback invocation data.
@@ -36,7 +35,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3635
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3736
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
3837
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 );
39-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_strided_dsmeanors( N, X, strideX ), v );
38+
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX( stdlib_strided_dsmeanors )( N, X, strideX ), v );
4039
return v;
4140
}
4241

@@ -53,7 +52,7 @@ static napi_value addon_method( napi_env env, napi_callback_info info ) {
5352
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
5453
STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 3 );
5554
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 );
56-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_strided_dsmeanors_ndarray( N, X, strideX, offsetX ), v );
55+
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX( stdlib_strided_dsmeanors_ndarray )( N, X, strideX, offsetX ), v );
5756
return v;
5857
}
5958

lib/node_modules/@stdlib/stats/base/dsmeanors/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2025 The Stdlib Authors.
4+
* Copyright (c) 2020 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)