-
Notifications
You must be signed in to change notification settings - Fork 99
feat: add new "moarstats" command #3207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a new moarstats command that computes additional statistical measures by extending existing stats CSV files generated by the stats command. This is Phase 1 of a larger feature, with future phases planned to support custom formulas via a DSL.
Key Changes
- Implements five new statistical measures: Pearson's Second Skewness Coefficient, Range to Standard Deviation Ratio, Quartile Coefficient of Dispersion, Bowley's Skewness Coefficient, and Z-Score of Mode
- Auto-generates baseline stats if not present, with configurable options
- Supports custom output paths and rounding precision
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| src/cmd/moarstats.rs | New command implementation with statistics computation logic and stats file handling |
| tests/test_moarstats.rs | Comprehensive test suite covering basic usage, auto-generation, custom output, rounding, value verification, and edge cases |
| src/main.rs | Registers moarstats command in full-featured build |
| src/mainlite.rs | Registers moarstats command in lite build |
| src/maindp.rs | Registers moarstats command in datapusher+ build |
| src/cmd/mod.rs | Adds moarstats module declaration |
| tests/tests.rs | Includes moarstats test module |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.
…ilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ing run_qsv_cmd to util Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 8 comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
resolves #2723
This is just Phase 1, where we compute readily available addl stats from existing stats
Future phases will include being able to use a DSL (luau, python or Mini Jinja?) to add custom formulas.