本文介绍了从正态分布值查找范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我目前正在参与一个项目,该项目的值分别为x和y,但不是均匀分布的,但是我想从该列表中找到2个范围之间的值.

I am currently involved in a project where by I have values x and y but that's not uni-formally distributed, but I want to find values between 2 ranges from that list.

对例如说我的x为[1、3、5、7、9、11]-> y为[0,2,3.5,5,2.5,0].如果将它们绘制到图形中,则会得到一条曲线.

Say for eg i have x as [1 , 3, 5, 7 ,9, 11] -> y as [0, 2, 3.5, 5, 2.5,0]. If I plot those into a graph I get a curve.

因此,如果我想找到2到8之间的平均值.我该如何在C#中做到这一点.

So if I want to find what the average value would be between 2 and 8. How can I do it in C#.

预先感谢您的帮助.

最好的问候,
普拉萨德

Best Regards,
Prasad

推荐答案

谢谢您在这里发布.

对于您的问题,我不太了解.范围是什么意思?

For your question, I do not have a good understand. What does the range mean? 

如果要获取数字的正态分布值,则可以检查以下链接.

If you want to get the normal distribution values of a number, you could check the following link.

在链接中,显示了获取正态分布值的代码示例.我测试一下.效果很好.

In the link, it shows a code example to get the normal distribution value. I test it. It works well.

https://social.msdn.microsoft.com/Forums/vstudio/zh-CN/504672ef-e5bc-4af9-bc61-7e5f1809d4cb/normal-distribution?forum=csharpgeneral

最好的问候,

温迪


这篇关于从正态分布值查找范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 10:24