简体   繁体   English

C#中的数学函数

[英]Math Functions in C#

I have a generated a set of random values which I expect to fit in Beta Distribution. 我生成了一组随机值,​​我期望它们适合Beta发布。

Is there any library which provides function to calculate betafit or uniformfit Just like it is available in Matlab ? 是否有任何库提供计算betafit或uniformfit的功能就像它在Matlab中可用?

Try Stats Master by Dew Research. 尝试Dew Research的Stats Master

BetaFit BetaFit
UniformFit UniformFit

Don't know about these functions, but looks like dewresearch got them. 不知道这些功能,但看起来像露水研究得到了它们。 Used their software before, but it's not free (only the trial) 之前使用过他们的软件,但它不是免费的(只有试用版)

http://www.dewresearch.com/help/vsnet/statsmaster/frames.html?frmname=topic&frmfile=Dew_Stats_Statistics_BetaFit@TVec@TSample@TSample@Integer@TSample.html http://www.dewresearch.com/help/vsnet/statsmaster/frames.html?frmname=topic&frmfile=Dew_Stats_Statistics_BetaFit@TVec@TSample@TSample@Integer@TSample.html

Thanks. 谢谢。 I also got this 我也得到了这个

http://www.meta-numerics.net/Documentation/html/8ff81058-d821-cfa0-eccf-b0c21d66a0a3.htm http://www.meta-numerics.net/Documentation/html/8ff81058-d821-cfa0-eccf-b0c21d66a0a3.htm

Meta.Numerics also contains some classes which solves my problem. Meta.Numerics还包含一些解决我问题的类。

There is a static function FitToSample() in each distribution. 每个分布中都有一个静态函数FitToSample()。 It calculates the parameters of the distribution. 它计算分布的参数。

For example, BetaDistribution.FitToSample() calculates me the alpha and beta values for the input data. 例如,BetaDistribution.FitToSample()计算输入数据的alpha和beta值。

But how to check whether the data actually fits the beta distribution ? 但是如何检查数据是否真的符合beta分布?

If anyone of you have used this, can you please tell me how to verify whether the input data fits the distribution( ex : exponential, beta). 如果您有人使用过这个,请告诉我如何验证输入数据是否符合分布(例如:指数,beta)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM