How this calculation works
Compute the real cepstrum of a finite signal with explicit logarithmic flooring and descriptive quefrency peaks.
c[n]=Re{IFFT(log|FFT(x)[k]|)}; quefrency[n]=n Δt.A worked example
For the default impulse plus a half-strength delayed impulse at index 3, the strongest listed positive-quefrency peak is near 0.003, with cepstral value approximately 0.2506677875.
Good to know
8–256 real samples within ±1000000, positive uniform spacing, absolute spectral floor 0–1000000. Zero or unresolved bins rejected when floor is zero; positive floor is explicit and clamped bins counted. Circular real cepstrum only, not complex phase recovery, source identification or minimum-phase reconstruction.
Reference: Primary author or official method documentation (opens in a new tab) ↗
A transform of a logarithmic spectrum
The real cepstrum takes the logarithm of the magnitude of a finite Fourier spectrum and transforms that sequence back to a sample-index domain. It therefore reveals structure in the spectrum rather than simply plotting the original Fourier magnitudes. The resulting horizontal variable is called quefrency to distinguish it from ordinary frequency.
This page returns the real cepstrum only. It does not preserve the original Fourier phase or reconstruct a unique original waveform from the logarithmic magnitudes. Another routine may offer minimum-phase reconstruction alongside a cepstrum, but that extra operation is not silently included in the capabilities of this calculator.
Compare this with the Discrete Fourier transform calculator for complex sequences. Transform the log magnitude spectrum back to the sample domain to reveal echo/periodic spectral structure, not just compute a spectrum.
Enter a finite record and its time unit
Use eight through 256 real samples at one constant spacing. The spacing gives quefrency its time unit: index n corresponds to n times the sample interval. A sample interval of 0.001 seconds turns index three into 0.003 seconds, whereas entering milliseconds changes the numerical time label accordingly.
The DFT treats the finite record circularly. The cepstrum therefore also has a periodic finite-record structure, and the page reports descriptive peaks on the positive half of that index range. It does not automatically zero-pad the input, choose an audio sample rate, or infer the duration from the number of typed observations.
Interpret the delayed-impulse default
The default contains an impulse of amplitude one followed three sample positions later by an impulse of amplitude one half. With spacing 0.001, that separation corresponds to 0.003 time units. The real cepstrum shows a prominent listed peak near that quefrency, with value approximately 0.2506677875 in this eight-sample circular calculation.
This is a deliberately transparent synthetic example, not proof that a similar peak in arbitrary data identifies a wall reflection or another particular source. Finite-record aliasing and other spectral regularities can also produce cepstral features. The page labels candidate peak locations descriptively and leaves physical interpretation to the model and observations.
Make spectral flooring explicit
The logarithm of a zero spectral magnitude is undefined. With the floor set to zero, the calculator rejects exact or numerically unresolved zero bins rather than substituting an arbitrary small number. This avoids making an undocumented regularization choice that can dominate the shape of the resulting cepstrum.
A positive floor replaces magnitudes smaller than that absolute threshold before the logarithm is taken. The threshold uses the same amplitude scale as the unnormalized forward DFT magnitude; it is not a fraction of the largest bin. The result counts clamped bins so users can see when the modification affects a substantial portion of the spectrum.
Separate the zero-quefrency coefficient
The coefficient at index zero is the average logarithmic spectral magnitude under the displayed transform convention. It is sensitive to overall signal scaling: multiplying the input by a positive constant adds its logarithm to this coefficient while leaving the other ideal real-cepstrum coefficients unchanged.
This property supplies a useful numerical check and explains why the summary can be close to zero even when the signal has nonzero samples. It is not a mean voltage, DC sample level or total energy. Do not compare it directly with those quantities merely because they are also sometimes presented at index zero in other analyses.
Read positive-quefrency peaks as diagnostics
The page lists local maxima within the selected positive half of the circular cepstrum and orders them by their numerical value. A listed local maximum can still be small, and its interpretation depends on the sample interval and full surrounding curve. The algorithm does not assign a statistical significance or a confidence interval to those locations.
The use of log magnitude also loses sign and phase information that would be needed for a unique signal reconstruction. Several different records can share the same magnitude spectrum and hence the same real cepstrum. A matching peak therefore supports a comparison of spectral structure, not an identification of one original sequence or physical source.
Compare processing choices before comparing outputs
When validating another package, match the forward and inverse transform normalization, sample count, any zero padding and the logarithmic floor. Windowing or detrending before the transform can alter the spectrum and cepstrum significantly. This page applies neither step invisibly, keeping the entered finite record as the actual numerical input.
Export the spacing and floor alongside the cepstrum and peak table. If many bins were clamped, repeat with an explicitly justified threshold and inspect how sensitive the features are to that choice. This is a numerical regularization investigation rather than a promise that one selected floor recovers the true unobserved echo, pitch or source signal.
A few questions, answered
Is quefrency the same as frequency?
No. It is the sample-index domain after transforming a log spectrum back; multiplying the index by sample spacing gives its time scale.
Why can zero spectral bins stop the calculation?
Their logarithm is undefined. Set a justified positive floor explicitly if regularization is intended; the calculator reports how many bins were changed.
Is the floor relative to the strongest bin?
No. It is an absolute threshold on the unnormalized forward-DFT magnitude scale, so changing signal amplitude can change which bins are clamped.
Does a peak prove an echo delay?
No. It is a descriptive feature that can have several causes. Finite-record effects and other periodic spectral structure must also be considered.