Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to calculate standard deviation using JAVA
    text
    copied!<p>I'm very new here, at the moment I am trying to calculate standard deviation with Java (I have googled it haha) but I am having a lot of issues on getting it working</p> <p>I have ten values that are inputed by a user which I then have to calculate the standard deviation of my understanding so far thanks to people who have replied is I find the mean of the array then complete the calculations</p> <pre><code> double two = total[2]; double three = total[3]; double four = total[3]; double five = total[4]; double six = total[6]; double seven = total[7]; double eight = total[8]; double nine = total[9]; double ten = total[10]; double eleven = average_total; mean = one + two + three + four + five + six + seven + eight + nine + ten + eleven; mean = mean/11; //one = one - mean; //System.out.println("I really hope this prints out a value:" +one); */ //eleven = average_total - mean; //eleven = Math.pow(average_total,average_total); //stand_dev = (one + two + three + four + five + six + seven + eight + nine + ten + eleven); //stand_dev = stand_dev - mean; // stand_dev = (stand_dev - mean) * (stand_dev - mean); // stand_dev = (stand_dev/11); // stand_dev = Math.sqrt(stand_dev); </code></pre> <p>I already have my data that is stored in an array of 10 values but I am not too sure how to print the data out of the array then do the calculations with out having to store the enter code here data some where else that I have manipulated </p> <p>Thank you for your time, much appreciated :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload