简体   繁体   English

Math.Net数值,正态分布与EXCEL函数

[英]Math.Net Numerics, normal distributions vs EXCEL functions

I am planning to use Math.NET Numerics library when porting functionality from EXCEL sheet calculator to ac# program. 我正计划在将功能从EXCEL表计算器移植到ac#程序时使用Math.NET Numerics库。 in Excel there is excessive use of the function NORM.S.DIST(Z;bCummelative) where z is the number of standard dev from mean. 在Excel中,过多使用了函数NORM.S.DIST(Z; bCummelative) ,其中z是平均值的标准dev数。 I can not clearly see from the documentation if there is a corresponding implementation of this function. 我无法从文档中清楚地看到是否存在此函数的相应实现。 Any one knows how to implement this in Math.NET Numerics? 有谁知道如何在Math.NET Numerics中实现这一点?

Thank you in advance for your suggestions 提前感谢您的建议

Thor 雷神

Just looking into documentation 只看文档

float mean   = 0.7;
float stddev = 1.3;

n = new Normal(mean, stddev);

if (bCummelative) // return CDF
    return n.CumulativeDistribution(z*stddev);
else              // return PDF
    return n.Density(z*stddev);

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

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