摘要 |
A table-driven, integer-based method for approximating down sampling of wave data is disclosed. This method provides an efficient approximation of the desired down sampled wave data without a significant impact to overall system performance. Integer calculations are exploited by: (1) multiplying all values of ti by a large enough value to include all significant portions of the decimal value; (2) making all values of Deltat integer values; and (3) using integer arithmetic for most calculations of Deltat and ti. The following static integer tables assist in the final calculations: (1) T[ ], where each element contains the value of ti divided by Deltat and multiplied by a large enough value, M, to place all significant decimal values to the left of the decimal; and (2) D[ ], where each element contains the number of samples of San to drop before arriving at a useable San and San+1 pair.
|