草庐IT

pnormaldist

全部标签

ruby - 什么相当于 Haskell 中 Ruby 的 pnormaldist 统计函数?

如下所示:http://www.evanmiller.org/how-not-to-sort-by-average-rating.html这是在Statistics2中实现的Ruby代码本身图书馆:#inverseofnormaldistribution([2])#Pr((-\infty,x])=qn->xdefpnormaldist(qn)b=[1.570796288,0.03706987906,-0.8364353589e-3,-0.2250947176e-3,0.6841218299e-5,0.5824238515e-5,-0.104527497e-5,0.8360937017e