??? 04/01/08 16:05 Read: times |
#152843 - Median filter ? Responding to: ???'s previous message |
Take an odd number (2*n+1) of samples, sort them, and use the (n+1)th sample.
e.g.: 5, 9, 6 <- last 3 samples 5, 6, 9 <- last 3 samples, sorted ^ | 6 <- this is the value used for processing You could also average the middle samples after sorting, if you need the signal to be smoother. e.g.: 5, 2, 6, 10, 7 <- last 5 samples 2, 5, 6, 7, 10 <- last 5 samples, sorted ^ ^ ^ | | | ---+--- | 6 <- average of middle 3 samples |
Topic | Author | Date |
Adding hysteresis on top of my sampling | 01/01/70 00:00 | |
my method | 01/01/70 00:00 | |
For this to work... | 01/01/70 00:00 | |
adaptive delta ... ? | 01/01/70 00:00 | |
All data is keep in eeprom | 01/01/70 00:00 | |
What does the oscilloscope tell you? | 01/01/70 00:00 | |
not a good ides | 01/01/70 00:00 | |
Median filter ? | 01/01/70 00:00 | |
are you using an RC low pass before the ADC? | 01/01/70 00:00 | |
check here | 01/01/70 00:00 | |
Found a minor issue in hardware...not dealbreaker![]() | 01/01/70 00:00 | |
Low Pass Filter in Software | 01/01/70 00:00 |