Question about Computers & Internet
The best thing to do here is to separate the steps for calculating the variance into different functions. To compute the variance the first thing to do is to compute the mean or the average of the numbers in the array. so your first function will loop through each of the numbers and divide it by the length of your array. the output is the returned. The next thing to do is create another function for the variance. loop through each of the numbers again and subtract to each number the mean. square the value then add to the previous. so that means you have another variable that starts from zero and just adds the answer. after that divide it by the length of the array again and what you are going to get is the value for the variance.
Posted on May 26, 2009
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
Here's a link to this great service
Posted on Jan 02, 2017
Tips for a great answer:
May 17, 2017 | Office Equipment & Supplies
Dec 24, 2012 | Microsoft Windows XP Professional
Sep 03, 2011 | Computers & Internet
Apr 09, 2009 | Sun Java Programming Language (cdj-275)
Nov 21, 2008 | Computers & Internet
Oct 13, 2008 | Computers & Internet
Aug 14, 2008 | Sun Java Programming Language (cdj-275)
132 people viewed this question
Usually answered in minutes!