Skip to content

Commit 43b8310

Browse files
committed
docs: fix examples
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 10cfaa0 commit 43b8310

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

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

207207
double v = stdlib_strided_dnanmeanwd( 6, x, 2 );
208-
// returns 1.25
208+
// returns ~4.67
209209
```
210210
211211
The function accepts the following arguments:
@@ -226,7 +226,7 @@ Computes the arithmetic mean of a double-precision floating-point strided array,
226226
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 };
227227

228228
double v = stdlib_strided_dnanmeanwd_ndarray( 6, x, 2, 0 );
229-
// returns 1.25
229+
// returns ~4.67
230230
```
231231
232232
The function accepts the following arguments:

0 commit comments

Comments
 (0)