My suspicion would be on your arrays: they might be growing without you knowing it, which would result in the calculations to take ever longer.
Some comments on your code: you seem to indicate it is pseudo code, so take this with a grain of salt.
In reply to Re: std dev calculations slow over time
by rhesa
in thread std dev calculations slow over time
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |