简体   繁体   English

VBA中的高斯误差函数(Excel)

[英]gauss error function in vba (excel)

Is there an existing function or open source lib to create an gaussian error function in VBA (in Excel)? 是否有现有功能或开放源代码库可在VBA(在Excel中)中创建高斯错误函数? Note that this is a mathematical function and has nothing to do with failure handling! 请注意,这是一个数学函数 ,与故障处理无关!

The Gauss error function, which is the integral of the normal distribution, is supported in Excel 2013 by the worksheet function =GAUSS() Excel 2013通过工作表函数= GAUSS()支持高斯误差函数,函数是正态分布的整数。

From VBA you would access it in the usual fashion VBA,您可以按常规方式访问它

Dim x as Double
Dim y as Double
y = Application.WorksheetFunction.Gauss(x)

. .

在此处输入图片说明

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

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