statspykage
1.0.0
StatsPykage is an open source Python package for analysing standard statistical distributions: Gaussian, Binomial, Poisson etc. distributions; hosted on PyPi.org.
Data can be read from .txt files to instances of the distribution models. The package can be used to:
Use the package manager pip to install StatsPykage.
pip install statspykageThe package should run with no issues using Python version 3.
To run the package, users also need to have the following packages installed:
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_twoContributions are welcomed. For major changes, kindly open an issue first to discuss the same before creating a pull request.
MIT
Leave a star in the GitHub repository if you found this project helpful!
(Back to top)