摘要 |
A method for downsampling digital samples x n ,... of a signal by a decimation factor d comprising an integer part i using averaging is disclosed. The method includes identifying a partial sum based on the decimation factor and a number N of samples to use for the averaging as a sum S n,i,n,N-1 of (N-i) samples x n+i , ... x n+N-1 , computing the partial sum, computing a first sum S n,n+N-1 of a first set of N digital samples x n , ... x n+N-1 as a sum of a set of i digital samples x n , ... x n+i-1 and the computed partial sum, computing a second sum S n+i,n+i+N-1 of a second set of N digital samples x n+i , ... x n+i+N-1 as a sum of a set of i digital samples x n+N , ... x n+;+N-1 and the computed partial sum, and downsampling the digital samples based at least in part on the first sum and the second sum. |