Saving Averages
#4

But what about when I need to add to it?

If I have the following:

69
42
55
18
32

The average is 216/5 = 43.2

If I then add 64 to that list:

69
42
55
18
32
64

The average is 280/6 = 46.6

But to increase it, I had to store the count (5) and total (216). How do I do it WITHOUT storing the count and total, and just storing the average? Is that even possible? I think not.
Reply


Messages In This Thread
Saving Averages - by MP2 - 01.07.2013, 02:26
Re: Saving Averages - by jamesbond007 - 01.07.2013, 02:45
Re: Saving Averages - by RyDeR` - 01.07.2013, 08:54
Re: Saving Averages - by MP2 - 01.07.2013, 12:39
Re: Saving Averages - by RyDeR` - 01.07.2013, 14:19
Re: Saving Averages - by PeppeAC - 01.07.2013, 14:23
Re: Saving Averages - by Vince - 01.07.2013, 15:03
Re: Saving Averages - by MP2 - 01.07.2013, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)