def get_normalized_templates(template_streams):
templates = []
for ts in template_streams:
t = data_conversion.stream2array(ts)
t = t.astype(np.float32)
t -= np.mean(t, axis=1, keepdims=True)
template_max = np.amax(np.abs(t))
t /= template_max
t *= np.blackman(ts[0].stats.npts)
templates.append(t)
return templates
评论列表
文章目录