Aceguy Posted May 11, 2007 Posted May 11, 2007 is there a fast solution to finding the MEAN of an array. (values added up divided be the number of arrays.) Many thanks [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
Toady Posted May 11, 2007 Posted May 11, 2007 Func _GetAverageFromArray($array) Local $sum = 0 For $i = 0 To UBound($array) - 1 $sum += $array[$i] Next Return $sum/Ubound($array) Endfunc www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding
Aceguy Posted May 11, 2007 Author Posted May 11, 2007 thanks very much Fast reply TY. [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now