Find the Mode of a data set
hi --
using arduino uno , relative humidity sensor... got working fine, in need of analyzing data in array... looking mode of 60 samples i'm storing... sensor htf3223 provide frequency output based on measurement... storing measured frequencies array. finding mode of array me filter out outlying samples either low or 2 high (for reason)...
i have tried using average library, cannot compile on arduino 1.8.1 use example sketch... question is, there trick average library work, or there better way derive mode of data set...
found average library here, can find .h file:
http://playground.arduino.cc/main/average
thank you!
using arduino uno , relative humidity sensor... got working fine, in need of analyzing data in array... looking mode of 60 samples i'm storing... sensor htf3223 provide frequency output based on measurement... storing measured frequencies array. finding mode of array me filter out outlying samples either low or 2 high (for reason)...
i have tried using average library, cannot compile on arduino 1.8.1 use example sketch... question is, there trick average library work, or there better way derive mode of data set...
found average library here, can find .h file:
http://playground.arduino.cc/main/average
thank you!
it won't compile? it's pity didn't want post errors , code here. might have been able fixed. if know made "errors" don't have go on we?
the mode number appears in set. shouldn't require library that. use loop run through array , count entries same. whichever 1 has greatest count, that's mode.
the mode number appears in set. shouldn't require library that. use loop run through array , count entries same. whichever 1 has greatest count, that's mode.
Arduino Forum > Topics > Science and Measurement > Find the Mode of a data set
arduino
Comments
Post a Comment