Skip to content

Instantly share code, notes, and snippets.

@tanimislam
tanimislam / probdistro.py
Created October 23, 2015 21:10
Python module that contains functionality to calculate a FUNKY collection of distribution functions, that sum to 1 over M sample points.
#!/usr/bin/env python
import numpy, pandas, pylab
def _return_prob_dist_sub(M = 5, N = 1000000):
us = numpy.random.random_sample((M-1, N))
ainits = numpy.zeros((M, N))
#
z = numpy.ones( N )
ainits[0,:] = z * us[0,:]