Chapter 6: Problem 36
Sample values from an experiment often need to be smoothed out. One simple approach is to replace each value in a list with the average of the value and its two neighboring values (or one neighboring value if it is at either end of the list). Implement a function that carries out this operation. You should not create another list in your solution.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.