Python 如何找到scipy.stats.mvn的源代码?
我在论文中使用了Python 如何找到scipy.stats.mvn的源代码?,python,scipy,statistics,probability-theory,Python,Scipy,Statistics,Probability Theory,我在论文中使用了scipy.stats模块中的函数mvn.mvnun()来计算给定多元正态分布的CDF。评审员问我如何估计CDF,因为CDF没有封闭形式。我想可能会使用抽样方法。为了了解它是如何工作的,我搜索了scipy源代码repo。然而,在scipy.stats中,我没有看到mvn.py,而是看到了 在文件中,mvn.mvnun的定义如下: ! -*- f90 -*- ! Note: the context of this file is case sensitive. python
scipy.stats
模块中的函数mvn.mvnun()
来计算给定多元正态分布的CDF。评审员问我如何估计CDF,因为CDF没有封闭形式。我想可能会使用抽样方法。为了了解它是如何工作的,我搜索了scipy
源代码repo。然而,在scipy.stats
中,我没有看到mvn.py
,而是看到了
在文件中,mvn.mvnun
的定义如下:
! -*- f90 -*-
! Note: the context of this file is case sensitive.
python module mvn ! in
interface ! in :mvn
subroutine mvnun(d,n,lower,upper,means,covar,maxpts,abseps,releps,value,inform) ! in :mvn:mvndst.f
integer intent(hide) :: d=shape(means,0)
integer intent(hide) :: n=shape(means,1)
double precision dimension(d) :: lower
double precision dimension(d) :: upper
double precision dimension(d,n) :: means
double precision dimension(d,d) :: covar
integer intent(optional) :: maxpts=d*1000
double precision intent(optional) :: abseps=1e-6
double precision intent(optional) :: releps=1e-6
double precision intent(out) :: value
integer intent(out) :: inform
end subroutine mvnun
但是,该功能没有详细的定义。我想知道在哪里可以找到通知我如何计算CDF的
mvnun
的源代码?实现是用Fortran编写的。该pyf
文件定义了中Fortran函数的接口,这就是您要查找的吗@是的,谢谢。好像我忽略了Fortran文件。哦,我忽略了Fortran文件。谢谢,这就是我想要的。