Advanced maths

Nonuniform Fourier transform calculator from irregular sample times

A nonuniform Fourier sum evaluates complex sinusoidal components directly at the times and frequencies you provide.

Your numbers

1–128 times; equal spacing is not required.
Same count as times.
Nonnegative; same count as times.
Cycles per time unit, 1–128 frequencies.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A nonuniform Fourier sum evaluates complex sinusoidal components directly at the times and frequencies you provide. This calculator uses explicit nonnegative weights, returns real and imaginary parts, magnitude and phase, and makes no assumption that sample times lie on an FFT grid. The computation is a direct sum rather than a fast transform.

THE FORMULAF(f)=Σ_j w_j y_j exp(−2πif t_j).

A worked example

At times 0,0.3,0.9 with values 1,2,1 and unit weights, the zero-frequency value is four. It equals the weighted sum because every exponential at f=0 is one. Nonzero frequencies add rotated vectors and can have a nonzero imaginary part even though every sample value is real.

Good to know

Matching lists of 1–128 real times, values and nonnegative weights; up to 128 frequencies. No automatic normalization, windowing, frequency estimation, least-squares fit, significance test or NUFFT acceleration. Phase at zero magnitude has no physical meaning despite the numerical angle convention.

A requested frequency is a separate evaluation point

Unlike a conventional DFT, the frequency list does not have to be a uniformly spaced set of bins. Each requested frequency defines its own sum over all sample times. This makes the method useful for checking a few hypotheses on irregularly timed observations, but its work grows with the product of sample count and frequency count.

The sign convention is negative in the complex exponential. Positive-frequency imaginary components therefore use a negative sine contribution. Frequency is measured in cycles per unit of the time coordinates, not angular frequency. Entering radians per second without dividing by two pi would evaluate a different set of oscillations.

Irregular sample times still have a simple zero-frequency sum00.30.9Unit weightsF(0) = 1+2+1Real 4; imag 0
At times 0,0.3,0.9 with values 1,2,1 and unit weights, F(0)=4. Unequal sample spacing does not change that identity. Nonzero frequency evaluations rotate each weighted sample in the complex plane.

The Discrete Fourier transform calculator for complex sequences covers a related task. This page focuses on nonuniform Fourier transform calculator from irregular sample times with the method limits and worked example described below.

Weights distinguish sums from approximate integrals

Unit weights produce a discrete sample sum. If the observations represent uneven time intervals, quadrature weights can instead approximate an integral of the signal against a sinusoid. The calculator requires those weights explicitly because irregular times alone do not specify a unique integration rule or exposure duration.

No division by sample count or total weight is applied. If a normalized average is needed, divide the reported complex value by the appropriate total outside this calculation. The zero-frequency result offers a direct check of that convention: it must equal the weighted sum of the real sample values.

A spectral peak is not a significance test

The largest magnitude is only the largest among the frequencies you entered. It does not establish a globally optimal frequency, a false-alarm probability or a resolved periodic signal. Irregular sampling can create a complicated spectral window, and neighboring frequency evaluations can be strongly dependent.

The ordinary DFT calculator concerns equally indexed samples and its own fixed frequency grid. A Lomb–Scargle analysis fits sinusoidal models with additional statistical assumptions. This page does neither: it exposes the weighted nonuniform Fourier sum and its phase directly, leaving interpretation to the sampling design and signal model.

A few questions, answered

Is this a NUFFT?

No. It evaluates the sum directly and makes no fast-algorithm claim.

Should weights add to one?

Only if that matches your chosen average model. The page performs no hidden normalization.

Find your calculator

Start typing to explore the library.