def g_numpy(in_streams, out_streams): t = StreamArray('t') map_window(max, dtype_float(in_streams[0]), t, window_size=2, step_size=2) print_stream(t, 't')
def tangent(in_streams, out_streams): map_element(np.tan, dtype_float(in_streams[0]), out_streams[0], name='tangent')
def cosine(in_streams, out_streams): map_element(np.cos, dtype_float(in_streams[0]), out_streams[0], name='cosine')
def sine(in_streams, out_streams): map_element(np.sin, dtype_float(in_streams[0]), out_streams[0], name='sine')
def f_numpy(in_streams, out_streams): map_window(np.mean, dtype_float(in_streams[0]), out_streams[0], window_size=2, step_size=2)