KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
powerlaw
★ 27
Open GitHub ↗
Power-Law Distribution Analysis
Download README (.md)
Explore Similar Repositories
nand2tetris
:
Notes and links for our NAND2Tetris study group, for the free intro to computer science course (http://nand2tetris.org/)
angular-webpack-typescript
:
Starter pack for a basic app using AngularJs, webpack and typescript
fsekrit
:
f0dder's sekrit
Grove_BME280
:
No description available.
windows-sickchill
:
A Windows Installer for SickChill
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
powerlaw
?
Download (.md)
# powerlaw [](http://powerlaw.readthedocs.org/en/latest/?badge=latest) [](https://zenodo.org/badge/latestdoi/48375467) Power-Law Distribution Analysis based on [Power-law distributions in Empirical data](http://arxiv.org/pdf/0706.1062.pdf) paper ([Summary](/paper/README.md)). ## Basic use ``` from powerlaw.regression import estimate_parameters, goodness_of_fit data = [1.1, 2.2, 3.3, 4.4] (xmin, alpha, ks_statistics) = estimate_parameters(data) p_value = goodness_of_fit(data, xmin, alpha, ks_statistics) ``` ## Install ``` sudo pip install git+https://github.com/shagunsodhani/powerlaw.git ``` #### Alternatively ``` git clone https://github.com/shagunsodhani/powerlaw.git cd powerlaw sudo python setup.py install ``` ## Features The current implementation supports fitting both continuous and discrete data to a power-law (using both Linear Regression and Maximum Likelihood Estimator method) and calculating the goodness of fit for the fitted power-law. Additionally, there are methods to generate random numbers for power-law, exponential and stretched exponential series. The complete documentation can be found [here](https://powerlaw.readthedocs.org). A short summary of the paper can be found [here](/paper/README.md). ## References [Clauset, Aaron, Cosma Rohilla Shalizi, and Mark EJ Newman. "Power-law distributions in empirical data." SIAM review 51.4 (2009): 661-703.](http://arxiv.org/pdf/0706.1062.pdf) ## License [MIT](http://shagun.mit-license.org/)