{"name":"BIS_fnc_arithmeticMean","operator":null,"title":"BIS fnc arithmeticMean","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_arithmeticMean","revid":338181,"updated":"2023-02-23T23:53:44Z","groups":["Math"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the [arithmetic mean](https://en.wikipedia.org/wiki/Mean#Arithmetic_mean_(AM)) (\"average value\") of an array of numbers.","syntaxes":[{"syntax":"numbers call BIS_fnc_arithmeticMean","since":null,"effect":null,"exec":null,"params":[{"name":"numbers","type":"Array of Numbers","optional":false,"default":null,"description":"must not be empty","types":["Array","Number"],"since":null,"text":"numbers: Array of Numbers - must not be empty"}],"returns":{"type":"Number","types":["Number"],"description":"arithmetic mean","text":"Number - arithmetic mean"}}],"examples":[{"text":"```sqf\n[1, 3] call BIS_fnc_arithmeticMean; // returns 2\n```","code":["[1, 3] call BIS_fnc_arithmeticMean; // returns 2"]},{"text":"```sqf\n[1, 9, 8, 2] call BIS_fnc_arithmeticMean; // returns 5\n```","code":["[1, 9, 8, 2] call BIS_fnc_arithmeticMean; // returns 5"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_randomInt","BIS_fnc_geometricMean","BIS_fnc_nearestNum","BIS_fnc_sortNum","BIS_fnc_roundNum"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Math","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}