def dbin(fs: float, tsweep: float, nsample: int, bandwidth: float) -> float:
    """
    Distance (in m) for each DFT frequency bin.
    """
    fbin = fs / nsample
    d = 299792458 * tsweep * fbin / (2 * bandwidth)
    return d