Use this page when the relative timing of two sampled signals must be inferred from a cross spectrum with an explicit sign convention.
The scientific question¶
Two channels can share frequency content while differing in phase. A cross spectrum preserves their relative complex information. Interpreting that phase as a time delay requires consistent DFT signs, channel order, phase wrapping, frequency units, and a model in which a delay is meaningful.
Phase is naturally reported modulo . Near frequencies where cross power or coherence is weak, phase can be numerically finite yet scientifically uninformative. At , conversion from phase to delay is singular.
Mathematical objects¶
Let and be Fourier transforms using the forward negative-exponent convention. Define the cross spectrum with the first channel conjugated. Swapping channel order conjugates the cross spectrum and reverses the phase sign.
Wrapped phase lies on a chosen interval such as . Unwrapping adds integer multiples of under continuity assumptions; it is an inference about branch connection, not a neutral formatting step.
Core derivation¶
For the channel-order convention , define:
With the DFT sign used on the signal-axes page, a delayed second channel has . Substitution into (1) gives and hence a positive . This sign depends on both the DFT and channel-order conventions.
Phase wrapping means the direct delay is ambiguous by integer multiples of . A broadband constant-delay fit should operate on a stated phase model or time-domain relation rather than independently unwrapping noisy bins without an evidence rule.
What the ecosystem already owns¶
JAX FFT
owns FFT mechanics, and JAX owns convolution mechanics. Complex multiplication
and angle evaluation are array operations; JAX does not assign channel order,
phase sign, wrap interval, frequency units, or validity masks.
What Jaxstro may add¶
The proposed jaxstro.signal may own explicit cross-spectrum records containing
channel order, DFT convention, sidedness, averaging plan, phase wrap convention,
frequency units, masks, and provenance. It may provide delay conversion that
fails closed at zero or unsupported frequencies.
It would not decide that phase implies causality or conceal low-information bins behind a finite delay value.
Evidence required before implementation¶
Required evidence would include:
synthetic shifted-signal fixtures with positive and negative delays;
channel-swap tests that conjugate the cross spectrum and reverse phase;
phase wrapping and controlled unwrapping cases across branch boundaries;
zero-frequency, Nyquist, and low-cross-power failure or mask behavior;
time-domain cross-correlation comparisons under compatible assumptions;
one-sided and two-sided cross-spectrum parity; and
provenance for channel order, sign, wrap interval, averaging, and masks.
Claim boundary¶
This page claims no implemented delay estimator, uncertainty calibration, or signal-detection result.
Connected foundations and methods¶
Use Signal axes, cadence, and units for the DFT sign and frequency axis, Windows and spectral leakage for finite-record leakage, and Power and cross-spectral estimation for power and cross-spectral normalization. Review Models, inference, and information for the distinction between a measured relation and an inferred model, and Sensitivity, conditioning, and identifiability for weakly identified phase and delay.