I am really sorry for this stupid question but it waste 1 week of my time and i did not find answer. I have a manual of a tool that manufacturer mentioned : "A T-Filter, a simple digital moving average low-pass filter, is used for the accelerometer sensor outputs." I have this output and wrote a code for filter in python but later, I was thinking that codes are not useful because they are for butterworth filter not average. I try to find some codes for average lowpass filter in python but could not. waiting for any idea.
Codes:
cutoff = 99
fs = 200
order = 5
b1 = message.split()[0]
a11 = float (b1)
d = [a11]
nyq = 0.5 * fs
normal_cutoff = cutoff / nyq
b, a = butter(order, normal_cutoff, btype='low', analog=False)
y = S.lfilter(b, a, (d))
print y