>>> from sampling import localmax >>> lmin = localmax(-20, 10, 0.1, 2) >>> for x, y in lmin: ... print(round(x, 2), round(y, 2)) -14.1 2.0 -7.8 2.02 -1.4 2.47 >>> lmin = localmax(-20, 10, 0.1, 15) >>> for x, y in lmin: ... print(round(x, 2), round(y, 2)) -14.1 15.38 -7.9 15.57 -1.6 15.89 4.7 16.37