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 貢献は歓迎されます。大きな変更については、最初に問題を開いて、プルリクエストを作成する前に同じことを議論してください。
mit
このプロジェクトが役立つ場合は、GitHubリポジトリに星を残してください!
(トップに戻る)