diff --git a/lib/node_modules/@stdlib/stats/base/dvariancepn/README.md b/lib/node_modules/@stdlib/stats/base/dvariancepn/README.md index 9dd4624dced..a1acfa4d199 100644 --- a/lib/node_modules/@stdlib/stats/base/dvariancepn/README.md +++ b/lib/node_modules/@stdlib/stats/base/dvariancepn/README.md @@ -240,10 +240,10 @@ console.log( v ); Computes the [variance][variance] of a double-precision floating-point strided array using a two-pass algorithm. ```c -const double x[] = { 1.0, -2.0, 2.0 }; +const double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 } -double v = stdlib_strided_dvariancepn( 3, 1.0, x, 1 ); -// returns ~4.3333 +double v = stdlib_strided_dvariancepn( 4, 1.0, x, 1, 0 ); +// returns ~6.666667 ``` The function accepts the following arguments: @@ -262,10 +262,10 @@ double stdlib_strided_dvariancepn( const CBLAS_INT N, const double correction, c Computes the [variance][variance] of a double-precision floating-point strided array using a two-pass algorithm and alternative indexing semantics. ```c -const double x[] = { 1.0, -2.0, 2.0 }; +const double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 } -double v = stdlib_strided_dvariancepn_ndarray( 3, 1.0, x, 1, 0 ); -// returns ~4.3333 +double v = stdlib_strided_dvariancepn_ndarray( 4, 1.0, x, 1, 0 ); +// returns ~6.666667 ``` The function accepts the following arguments: diff --git a/lib/node_modules/@stdlib/stats/base/dvariancepn/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dvariancepn/docs/repl.txt index b8df14ab910..1113261afeb 100644 --- a/lib/node_modules/@stdlib/stats/base/dvariancepn/docs/repl.txt +++ b/lib/node_modules/@stdlib/stats/base/dvariancepn/docs/repl.txt @@ -32,7 +32,7 @@ Input array. strideX: integer - Stride Length. + Stride length. Returns ------- @@ -87,7 +87,7 @@ Input array. strideX: integer - Stride Length. + Stride length. offsetX: integer Starting index.