8/10/2018 3:18 PM | |
Joined: 11/29/2011 Last visit: 3/23/2023 Posts: 2 Rating:
|
Attached is SCL source for a simple implementation of a Median Filter to process raw analog data integer values. It is useful for eliminating noise 'flyers' in your signal data. This filter takes the last eleven data values, puts them in numeric order least to greatest, then returns the value that is in the sixth position (middle) of the set. You may increase the size of the data set for more aggressive filtering, but the trade off will be execution time and storage space. Hope this may be useful for someone. It solved a problem reading a noisy laser input for me. -Chris AttachmentMedian SCL Code.txt (883 Downloads) |
This contribution was helpful to
3 thankful Users |
Follow us on