Skip to content

ubiquit0us/pystable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stable

python wrapper for alpha stable distributions in C++

master

Docker

build image

$ make build-image

pull pre-built image

$ docker pull demiurge/stable:latest

build

$ make build

install

# run the docker image in the project root
$ docker run --rm -it \
  `pwd`:/app \
  -w /app \
  demiurge/stable:latest \
  /bin/bash
$ python ./setup.py develop

example

root@8044a2d130a4:~# python
>>> import stable
>>> import numpy as np
>>>
>>> z = np.random.normal(0, 1, 1000)
>>> d = stable.alpha_stable_fit(z)
>>> print(d)
{
  'mu': 0.04784171761871786,
  'sigma': 0.7193377102627662,
  'alpha': 2.0,
  'beta': 0.0
}