小编Noo*_*234的帖子

如何使用JAVA计算标准偏差

我在这里很新,目前我正在尝试用Java计算标准偏差(我已经用谷歌搜索了哈哈)但是我在使用它时遇到了很多问题

我有一个由用户inputed十个值,然后我要计算我的理解标准偏差到目前为止感谢谁也说是我找到阵列的平均再完成计算人

                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 …
Run Code Online (Sandbox Code Playgroud)

java arrays standard-deviation

1
推荐指数
2
解决办法
7万
查看次数

标签 统计

arrays ×1

java ×1

standard-deviation ×1