Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The value in the datain.txt are: -23.1280 -10.6711 -40.0527 19.2846 10.4012 -0.4006 -0.6954 -15.9633 20.3737 -2.6643 -14.2906 27.0277 -4.4954 -11.7806 -5.8751 -16.9585 -22.4026 50.5200 33.1100

image text in transcribedimage text in transcribedimage text in transcribed

The value in the datain.txt are:

-23.1280 -10.6711 -40.0527 19.2846 10.4012 -0.4006 -0.6954 -15.9633 20.3737 -2.6643 -14.2906 27.0277 -4.4954 -11.7806 -5.8751 -16.9585 -22.4026 50.5200 33.1100 6.1507

The program should work with there or any other value fro datain.txt

Also, please show the output file seperatly.

Introduction In many engineering applications, created or measured data contains a signal of interest plus noise. The noise causes the data to vary in a random way (often dramatically) such that it becomes difficult to see trends in the signal. It is typically desirable to reduce the impact of noise on the signal by smoothing the data. Smoothing reduces large and short-term variations in the data There are many methods that may be used to smooth data. A simple one is to replace each data point with the median of three data points the data point of interest, the data point before it, and the data point after it. The median of a set of numbers is the "middle" number when the list of numbers is sorted in ascending order. In other words, it is the value above which half of the numbers lie and below which the other half of the numbers lie. For example, the median of the three numbers 8, 1, 2 is 2. Note that the median is different than the average (or mean) To smooth a set of numbers using the median method, a "window" three numbers wide is "slid" across the list of numbers. The number in the centre of the window is replaced with the median of the three numbers in the window. For example, below is a list of "noisy" numbers. The lines above and below the list represent windows three numbers wide. Above (or below) each window is the median value for the three numbers in that window. If the process is repeated throughout the list, the result is the list of smoothed numbers shown below the list of noisy numbers Noisy List 3 -5 26 7-6 7 9 2 1 -5 -7 Smoothed List 3 2 -5 2 7 -6 6 7 7 2 1 Notes: This method requires that the list contain a minimum of three numbers The list may contain an even or odd number of numbers The first and last numbers in the list are unchanged - For this lab a smoothed number will NOT be used to smooth the next number in the list. In other words, only original (noisy) numbers are used when calculating median values

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

Please answer all parts!!

Answered: 1 week ago