Skip to content

feat(Stats): add Statistics BoxSource - #466

Open
XiaoXiaoSN wants to merge 1 commit into
mainfrom
feat/boxsource-new-stats
Open

feat(Stats): add Statistics BoxSource#466
XiaoXiaoSN wants to merge 1 commit into
mainfrom
feat/boxsource-new-stats

Conversation

@XiaoXiaoSN

@XiaoXiaoSN XiaoXiaoSN commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Box Source: Statistics (Calculate)

Adds the Statistics box source to Magic Box. It is disabled by default.

Details:

  • Category (Kind): Calculate
  • Tag: #
  • Default Input: 2, 4, 4, 4, 5, 5, 7, 9 ::stats

Options:

  • ::statistics, ::stats

Description:

Descriptive statistics (mean, median, mode, stddev, etc.) of a list of numbers.

Usage Examples:

  • Input:
2, 4, 4, 4, 5, 5, 7, 9 ::stats
  • Output Box (Statistics):
Count: 8
Sum: 40
Mean: 5
Median: 4.5
Mode: 4
Min: 2
Max: 9
Range: 7
Variance: 4
Std Dev (pop): 2
Std Dev (sample): 2.13809

@XiaoXiaoSN

Copy link
Copy Markdown
Owner Author

Linting/testing failed on this branch.

Error details:

Please fix the linting and testing issues and ensure 'bun run lint' and 'bun test run' pass.

@XiaoXiaoSN

Copy link
Copy Markdown
Owner Author

Linting failed because imports in src/modules/boxSources/index.ts are not sorted. Please run 'bun run lint:fix' or sort the imports to fix this.

@XiaoXiaoSN
XiaoXiaoSN force-pushed the feat/boxsource-new-stats branch from 16bc909 to 56dc23d Compare June 26, 2026 08:18
@XiaoXiaoSN
XiaoXiaoSN force-pushed the feat/boxsource-new-stats branch from 56dc23d to a633d57 Compare July 23, 2026 05:13
@XiaoXiaoSN XiaoXiaoSN removed the TBD label Jul 23, 2026
@XiaoXiaoSN

Copy link
Copy Markdown
Owner Author

Rebased onto main and fixed import sorting / linting issues. All tests pass!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants