Evaluating a Function
For this assignment, we were tasked to evaluate the function myMean and describe it’s function.
The function is as follows:
with the dataset:
Result
The result of this function in RGUI is:
Explanation
The myMean function is used to find the mean of the data set. It does so by summing the elements of the array (in this case assignment2) and dividing it by the arrays length. It can be demonstrated simply like so: