{"id":638,"date":"2024-11-18T10:25:37","date_gmt":"2024-11-18T10:25:37","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=638"},"modified":"2025-09-26T10:35:01","modified_gmt":"2025-09-26T09:35:01","slug":"mwnci-mean-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-mean-function\/","title":{"rendered":"Mwnci mean() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>mean(<i><b>array<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The\u00a0<em>mean()<\/em> method calculates and returns the mean (average) of the given data set.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>include(\"stats\")\r\nprintln(mean([1, 3, 5, 7, 9, 11, 13]))\r\nprintln(mean([1, 3, 5, 7, 9, 11]))\r\nprintln(mean([-11, 5.5, -3.4, 7.1, -9, 22]))\r\n\r\n\r\n7\r\n6\r\n1.8666666666666665\r\n<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax mean(array) Description The\u00a0mean() method calculates and returns the mean (average) of the given data set. Example include(&#8220;stats&#8221;) println(mean([1, 3, 5, 7, 9, 11, 13])) println(mean([1, 3, 5, 7, 9, 11])) println(mean([-11, 5.5, -3.4, 7.1, -9, 22])) 7 6 1.8666666666666665<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-638","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=638"}],"version-history":[{"count":4,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/638\/revisions"}],"predecessor-version":[{"id":1205,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/638\/revisions\/1205"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}