Question: Program 4 Data Reduction with C++ Algorithms In this program you will analyze digitized data for pulses. The data comes from an actual digitizer that
Program 4 Data Reduction with C++ Algorithms In this program you will analyze digitized data for pulses. The data comes from an actual digitizer that reports voltages (except all the data has been reversed by the hardware-you must negate all values before proceeding). Here is a graph of one of the sample data files (which consist of integers separated by whitespace) after negating the values: 1600 200 600 1200 The data is quite jagged, so for finding pulses we will use a smooth version instead. In a new vector, copy the first 3 numbers from the original, negated data. Then, starting with the 4th point of the file (position [3], of course), and ending with the 4th from the last, replace each of those points with the following weighted average of its neighbors (the current point in question is pointed to by "iter") iter[-31+2iter[-23*iter-13*iter [0)3*iter2*iter [2)iter[3]) 15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
