# Running Statistics - Standard Deviation, Variance, Mean

## Recommended Posts

RunningStats calculates running (moving) statistics: Standard Deviation, Variance, and Mean . The single function _RunningStats(), queries, clears, restores, or adds to the running statistics.

Example.au3 adds 7 samples of data to running statistics and displays the results using _ArrayDisplay().

Example-Persistent-Storage.au3 adds the first 6 samples to the running statistics and stores the results in an INI file. The data is read from the INI file and restored to the running statistics. The 7th sample is added and the results displayed, matching the results from Example.au3.

Credits: John D. Cook for his article "Accurately computing running variance" at http://www.johndcook.com/blog/standard_deviation/

RunningStats.zip

Edited by jrsofsd

## Create an account

Register a new account

• ### Similar Content

• By MrCheese
hi all,
Dumb question, but say I have a loop:
dim \$i Do     sleep(1000)          if \$i = ; how do i do a function that enters this IF statement every 10 loops?         ; do stuff every 10     EndIf      Until \$i = 100
- what commands in the if statement do I need to use to make it pass, and on every 10th loop, it enters the if statement. ?

Thanks

• I started writing this UDF a while ago, so I decided to share it here.
This is an UDF full of advanced mathematical functions. It allows to work with primes, create number sequences, interpolate, calculate values of functions like Riemann zeta.
Full list of functions:

Changelog:

• Hey there
I'm thinking about making a program that will calculate with huge numbers. Well above 1*10^18 probably. Can autoit deal with that? If not, how can I make it work?
Thanks!
• By rm4453
I keep getting error : Statement cannot be just an expression.
Here are the 3 error variations it gives:
Global \$ImageCount += 1
~~~~~~~~~~~~~~~~~~~~~^
Global \$ImageCount += 1
~~~~~~~~~~~~~~~~~~~~^
Global \$ImageCount +=
~~~~~~~~~~~~~~~~~~~^
Here is the code:
• By Armand
Hi,
I've attached an example picture of a shape which i would like to calculate it's area. Let's say a user has marked this kind of shaped area on the screen and you need to run some calculations on it, like getting the area of it.

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...