simple_pendulum.utilities.filters

Filters

Submodules

simple_pendulum.utilities.filters.butterworth

Butterworth Low-pass Filter

simple_pendulum.utilities.filters.butterworth.data_filter(data_measured, order, cutoff)

creates a 3. order Butterworth lowpass filter with a cutoff of 0.2 times the Nyquist frequency or 200 Hz, returning enumerator (b) and denominator (a) polynomials for a Infinite Impulse Response (IIR) filter

simple_pendulum.utilities.filters.fast_fourier_transform

Fast Fourier Transform

simple_pendulum.utilities.filters.fast_fourier_transform.fast_fourier_transform(data_measured, data_desired, n, t)

Fast Fourier transform method

simple_pendulum.utilities.filters.fast_fourier_transform.scipy_fft(data_measured, smooth_freq=100)

SciPy alternative

simple_pendulum.utilities.filters.low_pass

Low-pass

simple_pendulum.utilities.filters.low_pass.online_filter(data_measured, n, alpha)

simple_pendulum.utilities.filters.running_mean

Moving Average

simple_pendulum.utilities.filters.running_mean.data_filter(x, N)
simple_pendulum.utilities.filters.running_mean.data_filter_realtime_1(data_measured_list, data_measured, window=10)
simple_pendulum.utilities.filters.running_mean.data_filter_realtime_2(i, data_measured_list, window=10)

simple_pendulum.utilities.filters.savitzky_golay

Savitzky-Golay

simple_pendulum.utilities.filters.savitzky_golay.savitzky_golay_filter(data_measured, window, degree)