def sampleWebPageVisitLength():
weibullPts = getWebPageWeibullPdfSample()
class my_pdf(st.rv_continuous):
def _pdf(self,x):
##return normalPdf(x) # Normalized over its range, in this case [0,1]
return interpolateFromPdfSamples(weibullPts, x)
my_cv = my_pdf(a=0, b=190.0, name='my_pdf')
return my_cv.rvs()
评论列表
文章目录