FIRフィルタの実装1 FIFO(first-in-first-out) Buffer
2133 ワード
// N : number of coefficients
// h(n) : filter coefficients, n = 0,…N-1
// x(n) : stored input data, n = 0,…N-1
// input sample : variable that contains the newest input sample
// Shift in the new sample. Note the data is shifted starting at the end
for (i=N-1;i>=0;i--){
x[i+1] = x[i];
}
x[0] = input_sample
// Filter the data
ynew = 0;
for (i=1;i<N;i++){
ynew = ynew + h(i)*x(i)
}
Author And Source
この問題について(FIRフィルタの実装1 FIFO(first-in-first-out) Buffer), 我々は、より多くの情報をここで見つけました https://qiita.com/enoshima/items/f1ca17014c7f4a480e2b著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .