Question: [Part B] Write the C++ code for performing an averaging filter of size Width on a data array of size N, to generate the output
![[Part B] Write the C++ code for performing an averaging filter](https://s3.amazonaws.com/si.experts.images/answers/2024/08/66c86fcbc0a64_85166c86fcb1ab87.jpg)
[Part B] Write the C++ code for performing an averaging filter of size Width on a data array of size N, to generate the output data array. Note, the output should get the identical input values if there are not enough valid entries to satisfy the window size of values. Example input and output for Width = 3. Input: 1 2 7 7 2 1 0 0 1 0 Output: 1 3.333 5.33 5.33 5 1 .3333 .3333 1 0 void AveragingFilter(float Input[], float Output[], int n, int Width)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
