Repository navigation
feat: add stats/incr/nanwmean - #5632
pranav-1720 wants to merge 5 commits into
Conversation
---
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: passed
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: passed
- 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: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
---
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: na
- 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: passed
- 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
---
Coverage Report
The above coverage report was generated for the changes in this PR. |
Signed-off-by: pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
Signed-off-by: pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
|
Hi, almost all the required files have been added to close the issues. I am just unsure what is needed for the repl.txt and image files like which are added in the nansum package. When adding repl.txt, i get module not found errors while commiting. Are these files supposed to be system generated? |
---
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: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: passed
- 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: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
Planeshifter
left a comment
There was a problem hiding this comment.
In case there is still interest in moving this PR forward, I left some feedback. Sorry it took so long!
| // MAIN // | ||
|
|
||
| /** | ||
| * Returns an accumulator function which incrementally computes a sum, ignoring `NaN` values. |
There was a problem hiding this comment.
Says "computes a sum" — should be "weighted arithmetic mean".
| * Returns an accumulator function which incrementally computes a sum, ignoring `NaN` values. | |
| * Returns an accumulator function which incrementally computes a weighted arithmetic mean, ignoring `NaN` values. |
| * mu = accumulator( 3.0, 1.5 ); | ||
| * // returns 2.5 | ||
| * | ||
| * mu = accumulator (2.0, NaN ); |
There was a problem hiding this comment.
Space before ( — should be accumulator( 2.0, NaN ). Same on line 46 in docs/types/index.d.ts.
| * mu = accumulator (2.0, NaN ); | |
| * mu = accumulator( 2.0, NaN ); |
| type accumulator = ( x?: number, w?: number ) => number | null; | ||
|
|
||
| /** | ||
| * Returns an accumulator function which incrementally computes a weighted arithmetic mean. |
There was a problem hiding this comment.
Missing "ignoring NaN values".
| * Returns an accumulator function which incrementally computes a weighted arithmetic mean. | |
| * Returns an accumulator function which incrementally computes a weighted arithmetic mean, ignoring `NaN` values. |
There was a problem hiding this comment.
This file uses 4-space indentation — stdlib convention is 2-space for JSON files.
|
Completed here: #13609 |
|
Thank you for working on this pull request. However, we cannot accept your contribution as the issue this pull request seeks to resolve has already been addressed in a different pull request or commit. Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions. |
Resolves #5628.
Description
This pull request:
stats/incr/nanwmeanwhich is a wrapper aroundstats/incr/wmeanto handle NaN valuesRelated Issues
No.
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers