LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Filtering an Array Using Standard Deviation

Solved!
Go to solution

Glad you have a working solution.   FYI, "noise" is a term that usually implies a degree of randomness and unpredictability.  If you can solve your problem merely by keeping / rejecting alternating values, that's a very simple and regular pattern -- so "noise" is probably not the best way to describe it.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 11 of 13
(162 Views)

I know you say Standard Deviation.. but would middle third averaging work (trimmed mean)?  

 

0 Kudos
Message 12 of 13
(156 Views)

@joshua.l.guthrie2.civ wrote:

I know you say Standard Deviation.. but would middle third averaging work (trimmed mean)?  


Here we have two interlaced signal, one as shown and one all near zero. Both signal have equal weight. Any running average with an odd window will favor one or the other while with an even window things will be even more blurry.

 

If the undesired values are more random, we could start with a known good value and reject points that differ too much form the previous, but that will also make the time base irregular (nonlinear). In that case, we would typically replace the bad values based on interpolation from good neighbors, while keeping the number of points constant.

0 Kudos
Message 13 of 13
(139 Views)