Statspykage é um pacote Python de código aberto para analisar distribuições estatísticas padrão: Gaussiano, Binomial, Poisson etc. Distribuições; Hospedado em Pypi.org.
Os dados podem ser lidos de arquivos .txt até instâncias dos modelos de distribuição. O pacote pode ser usado para:
Use o Package Manager PIP para instalar o Statspykage.
pip install statspykageO pacote deve ser executado sem problemas usando o Python versão 3.
Para executar o pacote, os usuários também precisam ter os seguintes pacotes instalados:
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 Contribuições são bem -vindas. Para grandes mudanças, abre um problema primeiro para discutir o mesmo antes de criar uma solicitação de tração.
Mit
Deixe uma estrela no repositório do GitHub se você achou esse projeto útil!
(De volta ao topo)