How to use this calculator
Measure how concentrated or distributed the spectrum of a short real signal is.
- Enter Uniform samples (signal units). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Normalized spectral entropy explained
Normalized spectral entropy summarizes how evenly the sampled signal’s one-sided spectral power is distributed across bins. It is invariant to an overall amplitude scale, but depends on record length, endpoint weighting, and the treatment of DC and windowing.
Inputs, symbols, and units
x— Uniform samples (signal units)- Chronological real samples; use a comma-separated list in the same signal units. Use comma-separated values in the stated order.
Formula and method
qk=Pk/ΣP; H=−Σqk log2(qk), with 0 log2 0=0; normalized H=H/log2(K); effective bins=2^H.
Use one-sided folded power, including DC and Nyquist when present. The entropy is about energy allocation across bins, not uncertainty in future samples.
A worked scenario
Uniform samples (signal units) = [1, 0, 0, 0, 0, 0, 0, 0].
- Normalized spectral entropy: 0.969022 ratio
- Spectral Shannon entropy: 2.25 bits
- Effective occupied bins: 4.756828 bins
An eight-sample impulse spreads power across the spectrum; its one-sided endpoint weights mean the distribution is not perfectly uniform.
Assumptions and edge cases
Results depend on record length, windowing and DC treatment; compare like-for-like analysis settings.
Reading the outputs
Normalized entropy lies between zero and one; effective bins quantify the equivalent number of equally powered bins.
Frequently asked questions
Does a pure tone have zero entropy?
A coherent tone entirely in one folded bin does, apart from numerical roundoff.
Is high entropy proof of random noise?
No. A deterministic broadband pulse can have high spectral entropy.
Why normalize by the number of bins?
It permits a bounded scale, though differing record lengths still alter resolution.
How do I use the Normalized spectral entropy calculator?
Enter Uniform samples (signal units). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Normalized spectral entropy?
Uniform samples (signal units) = [1, 0, 0, 0, 0, 0, 0, 0]. Normalized spectral entropy: 0.969022 ratio Spectral Shannon entropy: 2.25 bits Effective occupied bins: 4.756828 bins An eight-sample impulse spreads power across the spectrum; its one-sided endpoint weights mean the distribution is not perfectly uniform.
Read our calculation methodology.