We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
entropy
Calculates Shannon entropy of a column of values.
D CREATE TABLE entropy (vals UInt32,strings String); D INSERT INTO entropy VALUES (1, 'A'), (1, 'A'), (1,'A'), (1,'A'), (2,'B'), (2,'B'), (2,'C'), (2,'D'); D D SELECT entropy(vals), entropy(strings) FROM entropy; ┌───────────────┬──────────────────┐ │ entropy(vals) │ entropy(strings) │ │ double │ double │ ├───────────────┼──────────────────┤ │ 1.0 │ 1.75 │ └───────────────┴──────────────────┘
No response
https://duckdb.org/docs/sql/functions/aggregates#entropyx https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/entropy
The text was updated successfully, but these errors were encountered:
Haven't worked on a problem like this before. I would like to give this a try.
Sorry, something went wrong.
take
Given #12357 we may want to move this function to some other repo rather than the core
thank for notify @alamb
Suggestion: #12254 (comment)
We are going to implement these in a different repository so closing this ticket to avoid: #12254 (comment)
thinh2
No branches or pull requests
Is your feature request related to a problem or challenge?
Calculates Shannon entropy of a column of values.
Describe the solution you'd like
Describe alternatives you've considered
No response
Additional context
https://duckdb.org/docs/sql/functions/aggregates#entropyx
https://clickhouse.com/docs/en/sql-reference/aggregate-functions/reference/entropy
The text was updated successfully, but these errors were encountered: