signal.tests.test_signaltools

Module Contents

Functions

test_lfilter_bad_object()
test_lfilter_notimplemented_input()
filtfilt_gust_opt(b,a,x) An alternative implementation of filtfilt with Gustafsson edges.
check_filtfilt_gust(b,a,shape,axis,irlen=None)
test_choose_conv_method()
test_filtfilt_gust()
class _TestConvolve
test_basic()
test_same()
test_same_eq()
test_complex()
test_zero_rank()
test_single_element()
test_2d_arrays()
test_input_swapping()
class TestConvolve
test_valid_mode2()
test_same_mode()
test_invalid_shapes()
test_convolve_method(n=100)
test_convolve_method_large_input()
class _TestConvolve2d
test_2d_arrays()
test_valid_mode()
test_valid_mode_complx()
test_fillvalue()
test_fillvalue_deprecations()
test_fillvalue_empty()
test_wrap_boundary()
test_sym_boundary()
test_invalid_shapes()
class TestConvolve2d
test_same_mode()
test_valid_mode2()
test_consistency_convolve_funcs()
class TestFFTConvolve
test_real()
test_complex()
test_2d_real_same()
test_2d_complex_same()
test_real_same_mode()
test_real_same_mode2()
test_valid_mode()
test_real_valid_mode()
test_empty()
test_zero_rank()
test_single_element()
test_random_data()
test_many_sizes()
test_invalid_shapes()
class TestMedFilt
test_basic()
test_none()
test_refcounting()
class TestWiener
test_basic()
class TestResample
test_basic()
test_fft()
test_polyphase()
test_polyphase_extfilter()
test_mutable_window()
_test_data(method, ext=False)
test_poly_vs_filtfilt()
test_correlate1d()
class TestCSpline1DEval
test_basic()
test_complex()
class TestOrderFilt
test_basic()
class _TestLinearFilter
generate(shape)
convert_dtype(arr)
test_rank_1_IIR()
test_rank_1_FIR()
test_rank_1_IIR_init_cond()
test_rank_1_FIR_init_cond()
test_rank_2_IIR_axis_0()
test_rank_2_IIR_axis_1()
test_rank_2_IIR_axis_0_init_cond()
test_rank_2_IIR_axis_1_init_cond()
test_rank_3_IIR()
test_rank_3_IIR_init_cond()
test_rank_3_FIR()
test_rank_3_FIR_init_cond()
test_zi_pseudobroadcast()
test_scalar_a()
test_zi_some_singleton_dims()
base_bad_size_zi(b, a, x, axis, zi)
test_bad_size_zi()
test_empty_zi()
test_lfiltic_bad_zi()
test_short_x_FIR()
test_short_x_IIR()
test_do_not_modify_a_b_IIR()
test_do_not_modify_a_b_FIR()
class TestLinearFilterFloat32
class TestLinearFilterFloat64
class TestLinearFilterFloatExtended
class TestLinearFilterComplex64
class TestLinearFilterComplex128
class TestLinearFilterComplexExtended
class TestLinearFilterDecimal
type(x)
class TestLinearFilterObject
test_lfilter_bad_object()
test_lfilter_notimplemented_input()
class TestCorrelateReal
_setup_rank1(dt)
test_method(dt)
test_rank1_valid(dt)
test_rank1_same(dt)
test_rank1_full(dt)
_setup_rank3(dt)
test_rank3_valid(dt)
test_rank3_same(dt)
test_rank3_all(dt)
test_invalid_shapes(dt)
class TestCorrelateComplex
decimal(dt)
_setup_rank1(dt, mode)
test_rank1_valid(dt)
test_rank1_same(dt)
test_rank1_full(dt)
test_swap_full(dt)
test_swap_same(dt)
test_rank3(dt)
class TestCorrelate2d
test_consistency_correlate_funcs()
test_invalid_shapes()
class TestLFilterZI
test_basic()
test_scale_invariance()
class TestFiltFilt
filtfilt(zpk, x, axis=None, padtype="odd", padlen=None, method="pad", irlen=None)
test_basic()
test_sine()
test_axis()
test_acoeff()
test_gust_simple()
test_gust_scalars()
class TestSOSFiltFilt
test_equivalence()

Test equivalence between sosfiltfilt and filtfilt

filtfilt_gust_opt(b, a, x)

An alternative implementation of filtfilt with Gustafsson edges.

This function computes the same result as scipy.signal.signaltools._filtfilt_gust, but only 1-d arrays are accepted. The problem is solved using fmin from scipy.optimize. _filtfilt_gust is significanly faster than this implementation.

check_filtfilt_gust(b, a, shape, axis, irlen=None)
test_choose_conv_method()
test_filtfilt_gust()
class TestDecimate
test_bad_args()
test_basic_IIR()
test_basic_FIR()
test_shape()
test_phaseshift_FIR()
test_zero_phase_FIR()
test_phaseshift_IIR()
test_zero_phase_IIR()
_test_phaseshift(method, zero_phase)
test_auto_n()
class TestHilbert
test_bad_args()
test_hilbert_theoretical()
test_hilbert_axisN()
class TestHilbert2
test_bad_args()
class TestPartialFractionExpansion
test_invresz_one_coefficient_bug()
test_invres_distinct_roots()
test_invres_repeated_roots()
test_invres_bad_rtype()
class TestVectorstrength
test_single_1dperiod()
test_single_2dperiod()
test_equal_1dperiod()
test_equal_2dperiod()
test_spaced_1dperiod()
test_spaced_2dperiod()
test_partial_1dperiod()
test_partial_2dperiod()
test_opposite_1dperiod()
test_opposite_2dperiod()
test_2d_events_ValueError()
test_2d_period_ValueError()
test_zero_period_ValueError()
test_negative_period_ValueError()
class TestSOSFilt
test_rank1()
test_rank2()
test_rank3()
test_initial_conditions()
test_initial_conditions_3d_axis1()
test_bad_zi_shape()
test_sosfilt_zi()