feat(lib): add stats/incr/nanmmax
Resolves #5584.
Description
This pull request adds a new incremental statistics package @stdlib/stats/incr/nanmmax, which provides an accumulator function that computes a cumulative maximum while correctly ignoring NaN values (similar to nanmin, nansum, etc.).
The implementation properly handles signed-zero edge cases and returns null until the first non-NaN value is observed.
Related Issues
This pull request resolves #5584.
Questions
No.
Other
No.
Checklist
- [x] Read, understood, and followed the [contributing guidelines][contributing].
@stdlib-js/reviewers [contributing]: https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md
:wave: Hi there! :wave:
And thank you for opening your first pull request! We will review it shortly. :runner: :dash:
Getting Started
- Please read our contributing guidelines if you haven't already.
- For development guidance, refer to the development guide.
Next Steps
- A project maintainer will approve GitHub Actions workflows for your PR.
- All CI checks must pass before your submission can be fully reviewed.
- You'll need to address any failures in linting or unit tests.
Running Tests Locally
You can use make to run any of the CI commands locally from the root directory of the stdlib repository:
# Run tests for all packages in the math namespace:
make test TESTS_FILTER=".*/@stdlib/math/.*"
# Run benchmarks for a specific package:
make benchmark BENCHMARKS_FILTER=".*/@stdlib/math/base/special/sin/.*"
If you haven't heard back from us within two weeks, please ping us by tagging the "reviewers" team in a comment on this PR.
If you have any further questions while waiting for a response, please join our Gitter channel to chat with project maintainers and other community members.
We appreciate your contribution!
Documentation Links
Coverage Report
| Package | Statements | Branches | Functions | Lines |
|---|---|---|---|---|
| stats/incr/nanmmax | $\color{green}132/132$ $\color{green}+100.00%$ |
$\color{green}14/14$ $\color{green}+100.00%$ |
$\color{green}2/2$ $\color{green}+100.00%$ |
$\color{green}132/132$ $\color{green}+100.00%$ |
The above coverage report was generated for the changes in this PR.