Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/stats/base/dnanstdevtk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Computes the [standard deviation][standard-deviation] of a double-precision floa
const double x[] = { 1.0, -2.0, 0.0/0.0, 2.0 };

double v = stdlib_strided_dnanstdevtk( 4, 1.0, x, 1 );
// returns ~4.3333
// returns ~2.0817
```

The function accepts the following arguments:
Expand All @@ -277,7 +277,7 @@ Computes the [standard deviation][standard-deviation] of a double-precision floa
const double x[] = { 1.0, -2.0, 0.0/0.0, 2.0 };

double v = stdlib_strided_dnanstdevtk_ndarray( 4, 1.0, x, 1, 0 );
// returns ~4.3333
// returns ~2.0817
```

The function accepts the following arguments:
Expand Down
3 changes: 1 addition & 2 deletions lib/node_modules/@stdlib/stats/base/dnanstdevtk/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "stdlib/math/base/special/sqrt.h"
#include "stdlib/blas/base/shared.h"
#include "stdlib/strided/base/stride2offset.h"
#include <math.h>

/**
* Computes the standard deviation of a double-precision floating-point strided array ignoring `NaN` values and using a one-pass textbook algorithm.
Expand All @@ -48,5 +47,5 @@ double API_SUFFIX(stdlib_strided_dnanstdevtk)( const CBLAS_INT N, const double c
* @return output value
*/
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 ) {
return stdlib_base_sqrt( API_SUFFIX(stdlib_strided_dnanvariancetk_ndarray )( N, correction, X, strideX, offsetX ) );
return stdlib_base_sqrt( API_SUFFIX(stdlib_strided_dnanvariancetk_ndarray)( N, correction, X, strideX, offsetX ) );
}
Loading