高斯拟合在C# [英] Gaussian fit in C#
问题描述
在一个项目,我的工作,我需要获得一组点的高斯拟合 - 需要均值和方差的一些处理,可能一个错误学位(或精度等级),让我如果集合弄清楚点真的有一个正态分布。
In a project I'm working on I need to obtain a Gaussian fit from a set of points - needing mean and variance for some processing, and possibly an error degree (or accuracy level) to let me figure out if the set of points really have a normal distribution.
我发现这个的问题
,但它被限制为只有3分 - 而我需要一个合适的,可以与任何数量的点工作。
but it is limited to 3 points only - whereas I need a fit that can work with any number of points.
我需要的是类似于LabVIEW中的高斯曲线拟合
What I need is similar to the labview Gaussian Peak Fit
我已经看过mathdotnet和aforge.net (同时使用在同一个项目),但我没有发现任何东西。
I have looked at mathdotnet and aforge.net (using both in the same project), but I haven't found anything.
有谁知道任何C#或(易于转换)C / C ++或Java的解决方案?
Does anybody know any C# or (easily convertible) C/C++ or Java solutions?
另外,我已经告诉迭代算法应使用 - 我可以自己实现它(如果没有太多的数学复杂)。什么我可以使用任何想法?我读过很多文章(维基百科和其他人通过谷歌找到),但我还没有找到一个解决方案的任何明确说明。
Alternatively, I've been told that an iterative algorithm should be used - I could implement it by myself (if not too much math-complicated). Any idea about what I can use? I've read a lot of articles (on Wikipedia and others found via Google) but I haven't found any clear indication of a solution.
推荐答案
我发现在ImageJ的,一个公共领域的图像处理程序,其源代码可用一个好的执行的这里
I've found a good implementation in ImageJ, a public domain image processing program, whose source code is available here
转换为C#和适应我的需要。
Converted to C# and adapted to my needs.
感谢你们对你的答案......不严格有关我找到了解决办法,但不知何故,我在你的帮助了那里:)
Thanks to you guys for your answers... not strictly related to the solution I found, but somehow I got there with your help :)
这篇关于高斯拟合在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!