Skip to content

feat(ShannonEntropy): add Shannon Entropy BoxSource - #460

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

feat(ShannonEntropy): add Shannon Entropy BoxSource#460
XiaoXiaoSN wants to merge 1 commit into
mainfrom
feat/boxsource-new-shannonentropy

Conversation

@XiaoXiaoSN

@XiaoXiaoSN XiaoXiaoSN commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Box Source: Shannon Entropy (Analyze)

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

Details:

  • Category (Kind): Analyze
  • Tag: #
  • Default Input: aaaabbbbcccd ::entropy

Options:

  • ::entropy, ::shannon

Description:

Compute the Shannon entropy (bits per symbol) of the input text.

Usage Examples:

  • Input:
aaaabbbbcccd ::entropy
  • Output Box (Shannon Entropy):
Entropy: 1.855 bits/symbol
Length: 12 symbols
Unique Symbols: 4
Total Bits: 22

@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

This PR is ready to merge!

@XiaoXiaoSN
XiaoXiaoSN force-pushed the feat/boxsource-new-shannonentropy branch from fb0073c to ffe667d Compare June 26, 2026 08:18
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.

1 participant