Documentation sections
FFT Bin Resolution & Spectral Analysis Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug fft-bin-resolution. Calculate FFT frequency bin resolution, Nyquist range, time record length, and scalloping loss. Design spectral analysis parameters for DSP systems. Free, instant results.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| sampleRatenumber | kHz | at least 0.001 | 44.1 | Sample Rate |
| fftSizenumber | points | at least 8 | 1024 | Number of FFT points (power of 2 recommended) |
| windowTypenumber | none | 0 … 2 | 1 | Window Function |
| toneFreqnumber | Hz | at least 0 | 1000 | A tone to place on the bins: how far it falls from a bin centre sets how low the FFT reads it |
| sidebandSpacingnumber | Hz | at least 0.001 | 100 | The spacing of the neighbours to separate from the tone, at f₀ ± Δ, ± 2Δ and ± 3Δ: modulation sidebands, motor slip sidebands, mains hum |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| binResolutionheadline | Hz | Frequency Bin Resolution |
| frequencyRange | kHz | Frequency Range (Nyquist) |
| timeRecord | ms | Time Record Length |
| noiseFloor | dB | Noise floor improvement from coherent FFT integration |
| scalloping | dB | Scalloping Loss |
| toneBin | bins | Where the tone falls on the bins: its frequency over the bin width; a whole number is a tone on a bin centre |
| toneLevelError | dB | How far below the tone's true level the nearest bin reads it, from the window's response at the tone's offset from that bin; at half a bin it is the scalloping loss |
| resolutionBandwidth | Hz | The window's 6 dB bandwidth: two tones of equal strength closer than this show one peak (Harris 1978); a weaker neighbour needs more |
| sidebandsUnresolved | none | Of the neighbours at f₀ ± Δ, ± 2Δ and ± 3Δ inside the FFT's range, those within the 6 dB bandwidth of the tone: they merge with it into one peak |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.