如何构建程序以便计算数组中数字的不确定性 [英] How do I construct a program so that it calculates uncertainty of numbers from an array
本文介绍了如何构建程序以便计算数组中数字的不确定性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在学习python,它变得有趣。我想知道如何计算数组中的不确定性。
这是我从.txt文件加载的2D数组
I am learning python and it is getting interesting. I would like to know how to calculate uncertainty in an array.
This is my 2D array loaded from a .txt file
[[5,5,5]
[3,4,5]
[7,8,9]]
我想要做的是计算行中所有数字的平均值,然后得到该平均值的不确定性。
在我的情况下它将是5 + 3 + 7 = 15/3 = 5然后5 + 4 + 9 = 18/3 = 6等等。然后我需要那些平均数的不确定性,所以5和6的不确定性等等。
非常赞赏。
what i want to do is calculate the average of the of all the numbers in the row, and then have the uncertainty for that average.
in my case it would be 5+3+7 = 15/3 = 5 then 5+4+9 = 18/3 = 6 and so on. then i need the uncertainty of those average numbers so uncertainty of 5 and 6 and so on.
much appreciated.
推荐答案
我不知道这是不是答案,因为我不知道不确定性的公式。
请尝试此处: http://www.wikihow.com/Calculate-Uncertainty [ ^ ] - 约有三分之一的步骤是步骤用于你想要的计算。
"I don't know if that is the answer because i don't know the formula for uncertainty."
So try here: http://www.wikihow.com/Calculate-Uncertainty[^] - about 1/3 of the way down is the steps for the calculation you want.
这篇关于如何构建程序以便计算数组中数字的不确定性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文