Skip to content

Commit cb7c51d

Browse files
authored
chore: address commit comments
PR-URL: #6015 Closes: #6003 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 87abb74 commit cb7c51d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Computes the [standard deviation][standard-deviation] of a double-precision floa
255255
const double x[] = { 1.0, -2.0, 0.0/0.0, 2.0 };
256256

257257
double v = stdlib_strided_dnanstdevtk( 4, 1.0, x, 1 );
258-
// returns ~4.3333
258+
// returns ~2.0817
259259
```
260260
261261
The function accepts the following arguments:
@@ -277,7 +277,7 @@ Computes the [standard deviation][standard-deviation] of a double-precision floa
277277
const double x[] = { 1.0, -2.0, 0.0/0.0, 2.0 };
278278

279279
double v = stdlib_strided_dnanstdevtk_ndarray( 4, 1.0, x, 1, 0 );
280-
// returns ~4.3333
280+
// returns ~2.0817
281281
```
282282
283283
The function accepts the following arguments:

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "stdlib/math/base/special/sqrt.h"
2222
#include "stdlib/blas/base/shared.h"
2323
#include "stdlib/strided/base/stride2offset.h"
24-
#include <math.h>
2524

2625
/**
2726
* Computes the standard deviation of a double-precision floating-point strided array ignoring `NaN` values and using a one-pass textbook algorithm.
@@ -48,5 +47,5 @@ double API_SUFFIX(stdlib_strided_dnanstdevtk)( const CBLAS_INT N, const double c
4847
* @return output value
4948
*/
5049
double API_SUFFIX(stdlib_strided_dnanstdevtk_ndarray)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
51-
return stdlib_base_sqrt( API_SUFFIX(stdlib_strided_dnanvariancetk_ndarray )( N, correction, X, strideX, offsetX ) );
50+
return stdlib_base_sqrt( API_SUFFIX(stdlib_strided_dnanvariancetk_ndarray)( N, correction, X, strideX, offsetX ) );
5251
}

0 commit comments

Comments
 (0)