(I don't know if I should call them objects or elements, sorry if I typed the wrong name).
I have this array:
data[] readings;
If I want the value I use the following( i = some position):
readings[i].value;
And if I want the date:
readings[i].date;
How can I get the average of all value in readings using the average method?