I will use the data from accelerometer inside the phone and calculate angles from it. The thought is to store the angle data in an array using core data or write it into a file.
But I still need to do some calculation, for example the median and the 90 percentile number . How could I do it? Should I store the whole data first and then conduct calculation, like sorting from smallest to largest and then count?
I couldn't think of a good way to do it. If anyone has some suggestion I would be really grateful!