assertlen(nyquists)==1,"all banks must have the same Nyquist frequency to define a consistent horizon distance function (got %s)"%", ".join("%g"%rateforrateinsorted(nyquists))
warnings.warn("all banks should have the same Nyquist frequency to define a consistent horizon distance function (got %s)"%", ".join("%g"%rateforrateinsorted(nyquists)))
# assume default 4 s PSD. this is not required to be correct, but
# for best accuracy it should not be larger than the true value and
# for best performance it should not be smaller than the true