This is for a programming exercise. I have:
- the last average value
- the last standard deviation
- the total number of values
I need to be able to add a new value to my average without knowing the preceding ones but I can't figure out how to do this.
Can anybody help me on this?