>>524
import numpy as np
x = np.arange(100) #入力信号
x = x.reshape((-1,4)).mean(axis=1)

ただし系列長が4の倍数になっている必要あり