tlpipe.rfi.local_average_fit.LocalAverageFit

class tlpipe.rfi.local_average_fit.LocalAverageFit(time_freq_vis, time_freq_vis_mask=None, time_window_size=20, freq_window_size=40)[source]

Local average fit method.

In this method, the background value is caculated by the local average of a sliding window of size \(N \times M\) around each data value.

__init__(time_freq_vis, time_freq_vis_mask=None, time_window_size=20, freq_window_size=40)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

Methods

calculate_background(x, y)
fit() Fit the background.