Question: Problem 1 1 : Smoothing Data When data is temporal ( ordered by time ) , we sometimes want to smooth it by giving
Problem : Smoothing Data
When data is temporal ordered by time we sometimes want to smooth it by giving a simple
average. The simplest is taking two consecutive values and finding their average. Given a
possibly empty list of numbers lst xxxn the function smoothlst returns:
The string AveError: list empty" if the list is empty
lst if list only contains one number
a new list of numbers yyyn such that yi
xixi
The following code
data
for d in data :
print smooth d
produces
AveError : list empty
Deliverables for Problem
Complete the function.
Round to two decimal places.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
