hello all.
I would like to make an average of n last values from an incoming datas flow :
something like:
average = (Xn+7 + Xn+6 +Xn+5+Xn+4 + Xn+3 +Xn+2+Xn+1)/7
how could it be possible to do this in processing, or java style ?
thanks in advance
I would like to make an average of n last values from an incoming datas flow :
something like:
average = (Xn+7 + Xn+6 +Xn+5+Xn+4 + Xn+3 +Xn+2+Xn+1)/7
how could it be possible to do this in processing, or java style ?
thanks in advance
1