Skip to content
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.

Inputs of fft-bin-resolution
NameUnitRangeDefaultDescription
sampleRatenumberkHzat least 0.00144.1Sample Rate
fftSizenumberpointsat least 81024Number of FFT points (power of 2 recommended)
windowTypenumbernone0 … 21Window FunctionOne of: 0 Rectangular · 1 Hann · 2 Blackman
toneFreqnumberHzat least 01000A tone to place on the bins: how far it falls from a bin centre sets how low the FFT reads it
sidebandSpacingnumberHzat least 0.001100The 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.

Outputs of fft-bin-resolution
FieldUnitDescription
binResolutionheadlineHzFrequency Bin Resolution
frequencyRangekHzFrequency Range (Nyquist)
timeRecordmsTime Record Length
noiseFloordBNoise floor improvement from coherent FFT integration
scallopingdBScalloping Loss
toneBinbinsWhere the tone falls on the bins: its frequency over the bin width; a whole number is a tone on a bin centre
toneLevelErrordBHow 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
resolutionBandwidthHzThe window's 6 dB bandwidth: two tones of equal strength closer than this show one peak (Harris 1978); a weaker neighbour needs more
sidebandsUnresolvednoneOf 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.