statspykage
1.0.0
Statspykage是用於分析標準統計分佈的開源Python軟件包:高斯,二項式,泊松等分佈;在pypi.org上託管。
數據可以從.txt文件讀取到分發模型的實例。該包可以用於:
使用軟件包管理器PIP安裝Statspykage。
pip install statspykage該軟件包應使用Python版本3毫無問題運行。
要運行包裝,用戶還需要安裝以下軟件包:
import statspykage
# initialize two gaussian distributions
gaussian_one = Gaussian ( 25 , 3 )
gaussian_two = Gaussian ( 30 , 2 )
# initialize a third gaussian distribution reading in a data file
gaussian_three = Gaussian ()
gaussian_three . read_data_file ( 'filepath/filename.txt' )
gaussian_three . calculate_mean ()
gaussian_three . calculate_stdev ()
# print out the mean and standard deviations
print ( gaussian_one . mean ) # PRINTS: 25
print ( gaussian_two . mean ) # PRINTS: 30
print ( gaussian_one . stdev ) # PRINTS: 3
print ( gaussian_two . stdev ) # PRINTS: 2
print ( gaussian_three . mean )
print ( gaussian_three . stdev )
# plot histogram of gaussian three
gaussian_three . plot_histogram_pdf ()
# add gaussian_one and gaussian_two together
gaussian_one + gaussian_two 歡迎捐款。對於重大更改,請先在創建拉動請求之前先開一個問題以討論相同的問題。
麻省理工學院
如果您發現此項目有幫助,則將一顆星星留在GitHub存儲庫中!
(返回到頂部)