Skip to content

Commit c884529

Browse files
chore: changes from code review
1 parent 75ddeb9 commit c884529

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Computes the arithmetic mean of a double-precision floating-point strided array
190190
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 };
191191

192192
double v = stdlib_strided_dnanmeanors( 6, x, 2 );
193-
// returns 1.25
193+
// returns 4.66
194194
```
195195
196196
The function accepts the following arguments:
@@ -211,7 +211,7 @@ Computes the arithmetic mean of a double-precision floating-point strided array,
211211
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 };
212212

213213
double v = stdlib_strided_dnanmeanors( 6, x, 2, 0 );
214-
// returns 1.25
214+
// returns 4.66
215215
```
216216
217217
The function accepts the following arguments:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "stdlib/stats/base/dnanmeanors.h"
2020
#include "stdlib/blas/base/shared.h"
2121
#include "stdlib/strided/base/stride2offset.h"
22-
#include <stdint.h>
2322

2423
/**
2524
* Computes the arithmetic mean of a double-precision floating-point strided array, ignoring `NaN` values and using ordinary recursive summation.

lib/node_modules/@stdlib/stats/base/dnanmeanors/test/test.dnanmeanors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ tape( 'the function supports a `stride` parameter', function test( t ) {
104104
NaN // 4
105105
]);
106106

107-
v = dnanmeanors( 4, x, 2 );
107+
v = dnanmeanors( 5, x, 2 );
108108

109109
t.strictEqual( v, 1.25, 'returns expected value' );
110110
t.end();
@@ -126,7 +126,7 @@ tape( 'the function supports a negative `stride` parameter', function test( t )
126126
NaN // 0
127127
]);
128128

129-
v = dnanmeanors( 4, x, -2 );
129+
v = dnanmeanors( 5, x, -2 );
130130

131131
t.strictEqual( v, 1.25, 'returns expected value' );
132132
t.end();

lib/node_modules/@stdlib/stats/base/dnanmeanors/test/test.dnanmeanors.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ tape( 'the function supports a `stride` parameter', opts, function test( t ) {
195195
NaN // 4
196196
]);
197197

198-
v = dnanmeanors( 4, x, 2 );
198+
v = dnanmeanors( 5, x, 2 );
199199

200200
t.strictEqual( v, 1.25, 'returns expected value' );
201201
t.end();
@@ -217,7 +217,7 @@ tape( 'the function supports a negative `stride` parameter', opts, function test
217217
NaN // 0
218218
]);
219219

220-
v = dnanmeanors( 4, x, -2 );
220+
v = dnanmeanors( 5, x, -2 );
221221

222222
t.strictEqual( v, 1.25, 'returns expected value' );
223223
t.end();

lib/node_modules/@stdlib/stats/base/dnanmeanors/test/test.ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ tape( 'the function supports a `stride` parameter', function test( t ) {
104104
NaN // 4
105105
]);
106106

107-
v = dnanmeanors( 4, x, 2, 0 );
107+
v = dnanmeanors( 5, x, 2, 0 );
108108

109109
t.strictEqual( v, 1.25, 'returns expected value' );
110110
t.end();
@@ -126,7 +126,7 @@ tape( 'the function supports a negative `stride` parameter', function test( t )
126126
NaN // 0
127127
]);
128128

129-
v = dnanmeanors( 4, x, -2, 6 );
129+
v = dnanmeanors( 5, x, -2, 8 );
130130

131131
t.strictEqual( v, 1.25, 'returns expected value' );
132132
t.end();

lib/node_modules/@stdlib/stats/base/dnanmeanors/test/test.ndarray.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ tape( 'the function supports a `stride` parameter', opts, function test( t ) {
113113
NaN // 4
114114
]);
115115

116-
v = dnanmeanors( 4, x, 2, 0 );
116+
v = dnanmeanors( 5, x, 2, 0 );
117117

118118
t.strictEqual( v, 1.25, 'returns expected value' );
119119
t.end();
@@ -135,7 +135,7 @@ tape( 'the function supports a negative `stride` parameter', opts, function test
135135
NaN // 0
136136
]);
137137

138-
v = dnanmeanors( 4, x, -2, 6 );
138+
v = dnanmeanors( 5, x, -2, 8 );
139139

140140
t.strictEqual( v, 1.25, 'returns expected value' );
141141
t.end();

0 commit comments

Comments
 (0)