signal.tests.test_savitzky_golay

Module Contents

Functions

check_polyder(p,m,expected)
test_polyder()
alt_sg_coeffs(window_length,polyorder,pos) This is an alternative implementation of the SG coefficients.
test_sg_coeffs_trivial()
compare_coeffs_to_alt(window_length,order)
test_sg_coeffs_compare()
test_sg_coeffs_exact()
test_sg_coeffs_deriv()
test_sg_coeffs_large()
test_sg_filter_trivial() Test some trivial edge cases for savgol_filter().
test_sg_filter_basic()
test_sg_filter_2d()
test_sg_filter_interp_edges()
test_sg_filter_interp_edges_3d()
check_polyder(p, m, expected)
test_polyder()
alt_sg_coeffs(window_length, polyorder, pos)

This is an alternative implementation of the SG coefficients.

It uses numpy.polyfit and numpy.polyval. The results should be equivalent to those of savgol_coeffs(), but this implementation is slower.

window_length should be odd.

test_sg_coeffs_trivial()
compare_coeffs_to_alt(window_length, order)
test_sg_coeffs_compare()
test_sg_coeffs_exact()
test_sg_coeffs_deriv()
test_sg_coeffs_large()
test_sg_filter_trivial()

Test some trivial edge cases for savgol_filter().

test_sg_filter_basic()
test_sg_filter_2d()
test_sg_filter_interp_edges()
test_sg_filter_interp_edges_3d()