Skip to content

Commit 5264a7f

Browse files
authored
chore: pass correction as double in C docs
1 parent 9409a9d commit 5264a7f

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dvariancewd

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Computes the [variance][variance] of a double-precision floating-point strided a
242242
```c
243243
const double x[] = { 1.0, -2.0, 2.0 };
244244

245-
double v = stdlib_strided_dvariancewd( 3, 1, x, 1 );
245+
double v = stdlib_strided_dvariancewd( 3, 1.0, x, 1 );
246246
// returns ~4.3333
247247
```
248248
@@ -264,7 +264,7 @@ Computes the [variance][variance] of a double-precision floating-point strided a
264264
```c
265265
const double x[] = { 1.0, -2.0, 2.0 };
266266

267-
double v = stdlib_strided_dvariancewd_ndarray( 3, 1, x, 1, 0 );
267+
double v = stdlib_strided_dvariancewd_ndarray( 3, 1.0, x, 1, 0 );
268268
// returns ~4.3333
269269
```
270270

0 commit comments

Comments
 (0)