私はここで非常に新しいです。現在、Javaで標準偏差を計算しようとしています(グーグルで検索しました)が、それを機能させるには多くの問題があります
ユーザーが入力した10個の値があり、これまでの理解の標準偏差を計算する必要があります。回答してくれた人々のおかげで、配列の平均を見つけて計算を完了します
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);
私はすでに10個の値の配列に格納されているデータを持っていますが、配列からデータを出力して、入力コードをここに格納することなく計算を行う方法がよくわかりません。
お時間をいただきありがとうございます。