For this post, I will evaluate the following function called myMean as well as the data for this function assignment2.
Here's the code:
Here's the output:
After executing the function, it did indeed work but executing the function on its own will not result it anything meaningful unless you directly call the function and insert the variable you want to see the mean of. In this case, by plugging in assignment2, the myMean function takes the sum of it and divides it by the length of the vector and results in a value of 19.25.
Here is a link to the code via GitHub:
~ Katie
No comments:
Post a Comment