Hi All
I am using IRIS motes and wanted to calculate average values for 2000 values
so I decided dividing each one of them by the BUF_SIZE (2000) and then
transferring it to a variable. This involves handling float values, since
max adc value is 1000(approx) , but when I do this division all values I get
are zero... can you tell me how I can deal with floating values ?


or if there is a predefined function for calculating averages ?

I dont need the average value to be floating .. that final value should be
integer...

so basically, I have 2000 values between 0-1000 and I want their
average/mean value.... do you have any suggestions ?

Thanks
Akankshu

-- 
First they ignore you, then they laugh at you, then they fight you, then you
win.
- Mahatma Gandhi
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to