|
|
|
lowPassFilter in weight
outputs a new FloatArray, IntArray or Int16Array, depending on the type of the input, of the low pass filtered FloatArray, IntArray or Int16Array in. weight is the weighting of the average used for the computation. The applied simple algorithm is
m.(1)=in.(1) for [n 1 [count in]] [ out.n=(m.n*weight+in.n)/(weight+1) m.(n+1)=out.n ] |
x=rSeqFA -1 1 1000 y=(sin x*x*20*360)*300 x=x*400 setPC 0 setXY x y setPC 4 setXY x FloatArray lowPassFilter y 10 cs setXY x FloatArray lowPassFilter IntArray y 10 cs setXY x FloatArray lowPassFilter Int16Array y 10 |
|
|
|