问题描述
我这里有浮点数
0 0 0 0 0 120 145 154 254 254 156 0 0 0 0 0 0 14 15 12 85 65 85 78 0 0 0 0 0 0 0 965 985 785 123 654 784 965 325 0 0 0 0 0 0 0 0 .........
在上述情况下我必须取平均值120 145 154 254 254 156并保存为Number-1
和另一套14 15 12 85 65 85 78相同并保存为number-2等等。
这个或C#代码背后的逻辑可能对我有什么帮助?
我尝试了什么:
没有尝试任何东西......卡在这里。
I have float array here
0 0 0 0 0 120 145 154 254 254 156 0 0 0 0 0 0 14 15 12 85 65 85 78 0 0 0 0 0 0 0 965 985 785 123 654 784 965 325 0 0 0 0 0 0 0 0.........
In the above case I have to take average of 120 145 154 254 254 156 and save as Number-1
and same for the other set for 14 15 12 85 65 85 78 and save as number-2 and so on.
What is logic behind this or code in C# maybe which can help me?
What I have tried:
didnt try anything...stuck here.
推荐答案
这篇关于取平均值并保存为no-1,no-2,no-3等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!