PTWM
transforms

ptwm_core::transforms::entropy

EntropyEstimate op — computes per-byte Shannon entropy and stores it in the output plane's vendor_bytes as a Q8.24 fixed-point value.

ptwm_core::transforms::entropy

EntropyEstimate op — computes per-byte Shannon entropy and stores it in the output plane's vendor_bytes as a Q8.24 fixed-point value.

rsmod

ptwm_core::transforms::entropy

crates/ptwm-core/src/transforms/entropy.rs:1
mod entropy

`EntropyEstimate` op — computes per-byte Shannon entropy and stores it in the output plane's `vendor_bytes` as a Q8.24 fixed-point value.

rstype

ptwm_core::transforms::entropy::EntropyEstimate

crates/ptwm-core/src/transforms/entropy.rs:44
pub struct EntropyEstimate;

`EntropyEstimate` is a non-modifying inspection op. It reads the input plane's bytes, computes the per-byte Shannon entropy as a Q8.24 `u32` (4 bytes, little-endian), and stores it in the output plane's `vendor_bytes`. The plane bytes themselves are forwarded unchanged.

On `inverse`, the `vendor_bytes` entropy annotation is stripped (it is metadata, not part of the encoded data).