Signal spectral leakage comparison calculator

Calculate normalized power by FFT bin, window A and normalized power by FFT bin, window B with your own figures.

Your numbers

Use the units shown. Results update as you change valid inputs.

Use normalized power by FFT bin, window A and normalized power by FFT bin, window B to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Sinusoid frequency in FFT-bin units
5.3
Sample count
32
Window A: 0 rectangular, 1 periodic Hann, 2 Hamming
0
Window B: 0 rectangular, 1 periodic Hann, 2 Hamming
1
Normalized power by FFT bin, window A
[0.00420736820811,0.00453768066243,0.00579205364016,0.009371050824,0.0239053066753,0.377348940723,0.0598984952399,0.00900592977565,0.00324601514004,0.00161146219773,0.000955614753643,0.000639188092546,0.000469011930056,0.00037203930881,0.000316531644151,0.000287655195221,0.000278680186558,0.000287655195221,0.000316531644151,0.00037203930881,0.000469011930056,0.000639188092546,0.000955614753643,0.00161146219773,0.00324601514004,0.00900592977565,0.0598984952399,0.377348940723,0.0239053066753,0.009371050824,0.00579205364016,0.00453768066243]
Normalized power by FFT bin, window B
[0.00000146668817841,0.00000352005627087,0.0000197961677107,0.00022468354216,0.0274549220544,0.296641415203,0.173421815145,0.00214290449973,0.0000768224925421,0.0000100529885968,0.00000224505762708,6.74413643158e-7,2.4314034116e-7,9.84710074586e-8,4.34330369317e-8,2.19148598466e-8,1.61534898916e-8,2.19148598466e-8,4.34330369316e-8,9.84710074584e-8,2.4314034116e-7,6.74413643158e-7,0.00000224505762708,0.0000100529885968,0.0000768224925421,0.00214290449973,0.173421815145,0.296641415203,0.0274549220544,0.00022468354216,0.0000197961677107,0.00000352005627087]

Try another scenario

Sinusoid frequency in FFT-bin units
5.83
Sample count
32
Window A: 0 rectangular, 1 periodic Hann, 2 Hamming
0
Window B: 0 rectangular, 1 periodic Hann, 2 Hamming
1
Normalized power by FFT bin, window A
[0.000339921549093,0.000393353871697,0.000595762861694,0.00115409031042,0.00306283587051,0.0168299536957,0.456109371204,0.0109630669567,0.00363069566865,0.0019407672346,0.00128276848995,0.000958490252586,0.000777492890515,0.000670284829705,0.000606847685572,0.000573050092815,0.000562414621382,0.000573050092815,0.000606847685572,0.000670284829705,0.000777492890515,0.000958490252586,0.00128276848995,0.0019407672346,0.00363069566865,0.0109630669567,0.456109371204,0.0168299536957,0.00306283587051,0.00115409031042,0.000595762861694,0.000393353871697]
Normalized power by FFT bin, window B
[6.90362597802e-7,0.00000108057221005,0.00000355311314552,0.0000228407810027,0.000475532434118,0.131236939652,0.321140202925,0.0469713907583,0.000134851296158,0.0000105909711861,0.00000186482295228,4.95029633813e-7,1.70821641071e-7,7.19701807352e-8,3.65835168581e-8,2.32312617341e-8,1.97132422719e-8,2.3231261734e-8,3.65835168582e-8,7.19701807351e-8,1.70821641071e-7,4.95029633813e-7,0.00000186482295228,0.0000105909711861,0.000134851296158,0.0469713907583,0.321140202925,0.131236939652,0.000475532434118,0.0000228407810028,0.00000355311314552,0.00000108057221005]
Calculation method

Calculation method

Normalized power by FFT bin, window A

DFT of a cosine times selected window; divide each bin power by total power.

Normalized power by FFT bin, window B

Same sinusoid and samples, second window.

Symbols and units
a
Sinusoid frequency in FFT-bin units
b
Sample count
c
Window A: 0 rectangular, 1 periodic Hann, 2 Hamming
d
Window B: 0 rectangular, 1 periodic Hann, 2 Hamming

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Assumptions & limits

Assumptions & limits

  • Sinusoid frequency, sample count, windows. Returns Normalized spectral distributions. All coefficients and observations are user supplied; results describe only the stated mathematical model. Quantities are deterministic calculations from supplied observations and assumptions; no external data is fetched. Supported limits: Finite inputs only; numeric fields bounded as labelled. Lists and JSON records are limited to 256 entries unless a stricter tool bound is stated. No automatic design approval, legal conclusion, treatment recommendation or safety certification. Sinusoid frequency in FFT-bin units: minimum 1e-12, maximum 127. Sample count: minimum 4, maximum 128. Window A: 0 rectangular, 1 periodic Hann, 2 Hamming: minimum 0, maximum 2. Window B: 0 rectangular, 1 periodic Hann, 2 Hamming: minimum 0, maximum 2.
Are these inputs private?

These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.

Further reading

Method reference ↗

Background reading; this does not imply endorsement or independent review of SumFizz.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.