Help me write an average filter program to remove extreme values

I can help you write a de-extreme average filter program. First, you need to get the input data, then in a loop, for each data point, compare the size of it with its adjacent data points, if it is bigger than two adjacent data points, then replace it with them , and then output the processed data.

Guess you like

Origin blog.csdn.net/weixin_42588555/article/details/129528691