Best way to write a Python function that integrates a gaussian?

前端 未结 5 1182
小鲜肉
小鲜肉 2021-02-04 18:48

In attempting to use scipy\'s quad method to integrate a gaussian (lets say there\'s a gaussian method named gauss), I was having problems passing needed parameters to gauss and

5条回答
  •  长发绾君心
    2021-02-04 19:20

    scipy ships with the "error function", aka Gaussian integral:

    import scipy.special
    help(scipy.special.erf)
    

提交回复
热议问题