Moved zero_crossings function to Taguchi module.

这个提交包含在:
Craig Warren
2016-03-16 09:13:20 +00:00
父节点 822957a6f2
当前提交 bae25b5458

查看文件

@@ -128,18 +128,3 @@ def human_size(size, a_kilobyte_is_1024_bytes=True):
raise ValueError('Number is too large.')
def zero_crossings(data):
"""Find location of zero crossings in 1D data array.
Args:
data (float): 1D array
Returns:
Array of indices (int).
"""
pos = data > 0
npos = ~pos
return ((pos[:-1] & npos[1:]) | (npos[:-1] & pos[1:])).nonzero()[0]