enterprise/signals/utils.py
def hd_orf(pos1, pos2):
    """Hellings & Downs spatial correlation function."""
    if np.all(pos1 == pos2):
        return 1
    else:
        omc2 = (1 - np.dot(pos1, pos2)) / 2
        return 1.5 * omc2 * np.log(omc2) - 0.25 * omc2 + 0.5
Hellings & Downs spatial correlation function.
Hellings & Downs spatial correlation function.
Hellings & Downs spatial correlation function .
def hd_orf(pos1, pos2):
    if np.all(pos1 == pos2):
        return 1
    else:
        omc2 = (1 - np.dot(pos1, pos2)) / 2
        return 1.5 * omc2 * np.log(omc2) - 0.25 * omc2 + 0.5
def hd_orf ( pos1 , pos2 ) : if np . all ( pos1 == pos2 ) : return 1 else : omc2 = ( 1 - np . dot ( pos1 , pos2 ) ) / 2 return 1.5 * omc2 * np . log ( omc2 ) - 0.25 * omc2 + 0.5
Hellings & Downs spatial correlation function.
Hellings & Downs spatial correlation function .
"""Hellings & Downs spatial correlation function."""
pos1
pos2