0
我試圖在Python程序中使用分佈函數(隨機函數,我已經想通了;我正在尋找gsl_cdf_beta_Pinv()),我無法找到它。有人能告訴我如何在程序中使用這些或快速替代方法嗎?PyGSL中的gsl_cdf_beta_Pinv()在哪裏?
謝謝,
Mark Ch。
我試圖在Python程序中使用分佈函數(隨機函數,我已經想通了;我正在尋找gsl_cdf_beta_Pinv()),我無法找到它。有人能告訴我如何在程序中使用這些或快速替代方法嗎?PyGSL中的gsl_cdf_beta_Pinv()在哪裏?
謝謝,
Mark Ch。
它在此Cython source file(對於模塊probability_distribution
)定義爲通過RealDistribution
當其self.distribution_type==beta
類的一個實例的方法cum_distribution_function_inv
被介導。所以你應該導入模塊,實例化類,然後調用方法 - 例如
from gsl import probability_distribution
thebeta = probability_distribution.RealDistribution(type='beta',
parameters=[alpha, beta])
print thebeta.cum_distribution_function_inv(0.1)
我沒有在手GSL安裝測試此代碼(所以可能會有一些小的細節錯誤在這裏!),但我不希望這點你在正確的方向。