RE: Process the part of a wave with meaningful data for RMS
eesyliu
Mon, 01/19/2015 - 12:28 am
I have some measurement results from accelerometers for which I would like to calculate the RMS value of acceleration. The measurement result is obtained with a train. That means before and after the train passing the sensor the measurement values are zero. I am looking for a method to calculate RMS value of G and remove those data without the train (or else the RMS value is diluted). Can this be done automatically? I am thinking if a method to detect the useful range and copy it into another wave and only calculate the RMS of the wave using Wavestats. Is that possible?
THanks.
val_temp = val == 0 ? NaN : val // set all zeros to NaN
WaveTransform zapNaNs val_tmp //clip wave to values only
Wavestats val_tmp
January 19, 2015 at 12:35 am - Permalink
Thank you very much. So this will calculate those data points with non-zero value and those zero value data points within the train will also be converted to NaN and will not be processed, isn't it?
I am wondering if this will affect the RMS value as those NaN points within the train passing time are not considered.
January 19, 2015 at 01:26 am - Permalink
January 19, 2015 at 03:43 am - Permalink