pynrc.reduce.calib.fit_corr_powspec
- pynrc.reduce.calib.fit_corr_powspec(freq, ps, flim1=[0, 1], flim2=[10, 100], alpha=-1, **kwargs)[source]
Fit Correlated Noise Power Spectrum
Fit the scaling factors of the 1/f power law components observed in the correlated noise power spectra. This function separately calculates the high-freq and low- freq scale factor components defined by the fcut params. The mid-frequency ranges are interpolated in log space.
- Parameters:
freq (ndarray) – Input frequencies corresponding to power spectrum.
ps (ndarray) – Input power spectrum to fit.
flim1 (float) – Fit frequencies within this range to get scaling for low frequency 1/f noise.
flim2 (float) – Fit frequencies within this range to get scaling for high frequency 1/f noise.
alpha (float) – Noise power spectrum scaling