/shannon-entropy-wasm

A rust library to calculate the shannon entropy of a string.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

shannon-entropy-wasm

A rust + webassembly library to calculate the Shannon Entropy of a string.

Example

const { default: init, shannon_entropy } = await import('./pkg/entropy.js');
await init();
shannon_entropy('Hello World!');

// 3.0220556259155273