modelLogNormal.py 文件源码

python
阅读 40 收藏 0 点赞 0 评论 0

项目:scrap 作者: BruceJohnJennerLawso 项目源码 文件源码
def getModelpdf(self, x):
        if(x>=0):
            output = 1.0/(  (x*self.getSigmaValue())*sqrt(2*np.pi) )
            output *= exp(-0.5*((log(x)- self.getx0Value())/self.getSigmaValue())**2)
        else:
            output = x      

        return scipy.where((x<0), 0.0, output)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号