def METHOD_NAME(components, sampling_rate=1000):
    """Get the mean frequency of components."""
    duration = components.shape[1] / sampling_rate
    n = len(components)
    freqs = np.zeros(n)
    for i in range(n):
        c = components[i, :] - np.mean(components[i, :])
        freqs[i] = len(signal_zerocrossings(c)) / duration