- Jun 6, 2020
- 11,559
- 4,422
Hi,
I am making a Shortt Free Pendulum clock and record the time error. When making changes to the tuning of the pendulum you must stop it from moving. This creates artifacts in the time data which are a nuisance when plotting trends. To get rid of these artifacts I made a median filter class with a variable window. I use a list as the window as this makes sorting a breeze. However a median filter is a blunt instrument so I added a couple of side salads.
The first of these applies exception limits to the data and whilst the data is within these limits the data is smoothed with a moving average of the window size.
The second one simply outputs the input when the data is within the exception limits, but if the data goes out side the limits the median filter is sued to produce the output.
I hope someone finds this useful.
Best regards
Rob
I am making a Shortt Free Pendulum clock and record the time error. When making changes to the tuning of the pendulum you must stop it from moving. This creates artifacts in the time data which are a nuisance when plotting trends. To get rid of these artifacts I made a median filter class with a variable window. I use a list as the window as this makes sorting a breeze. However a median filter is a blunt instrument so I added a couple of side salads.
The first of these applies exception limits to the data and whilst the data is within these limits the data is smoothed with a moving average of the window size.
The second one simply outputs the input when the data is within the exception limits, but if the data goes out side the limits the median filter is sued to produce the output.
I hope someone finds this useful.
برای دیدن تصاویر باید ثبت نام کنید
Best regards
Rob
برای دیدن لینک ها باید ثبت نام کنید