signal.tests.test_peak_finding

Module Contents

Functions

_gen_gaussians(center_locs,sigmas,total_length)
_gen_gaussians_even(sigmas,total_length)
_gen_ridge_line(start_locs,max_locs,length,distances,gaps) Generate coordinates for a ridge line.
_gen_gaussians(center_locs, sigmas, total_length)
_gen_gaussians_even(sigmas, total_length)
_gen_ridge_line(start_locs, max_locs, length, distances, gaps)

Generate coordinates for a ridge line.

Will be a series of coordinates, starting a start_loc (length 2). The maximum distance between any adjacent columns will be max_distance, the max distance between adjacent rows will be `map_gap’.

max_locs should be the size of the intended matrix. The ending coordinates are guaranteed to be less than max_locs, although they may not approach max_locs at all.

class TestRidgeLines
test_empty()
test_minimal()
test_single_pass()
test_single_bigdist()
test_single_biggap()
test_single_biggaps()
class TestArgrel
test_empty()
test_basic()
test_highorder()
test_2d_gaussians()
class TestFindPeaks
test_find_peaks_exact()

Generate a series of gaussians and attempt to find the peak locations.

test_find_peaks_withnoise()

Verify that peak locations are (approximately) found for a series of gaussians with added noise.

test_find_peaks_nopeak()

Verify that no peak is found in data that’s just noise.