# HG changeset patch # User Nicolas Saunier # Date 1355464873 18000 # Node ID 78922b4de3bfd1c248b45779acddfa73cbe88b7e # Parent 7833140539f90fa3d792613bb67d3272722b5913 minor change diff -r 7833140539f9 -r 78922b4de3bf python/utils.py --- a/python/utils.py Mon Nov 19 18:12:51 2012 -0500 +++ b/python/utils.py Fri Dec 14 01:01:13 2012 -0500 @@ -70,7 +70,7 @@ return sum(self.counts) def cumulativeDensityFunction(sample): - 'Returns the cumulative density function of the sample of a random variable' + '''Returns the cumulative density function of the sample of a random variable''' from numpy.core.multiarray import array from numpy.lib.function_base import unique from numpy.core.fromnumeric import sum @@ -115,6 +115,7 @@ intervals (categories variable) are defined by their left limits, the last one being the right limit categories contain therefore one more element than the counts''' def __init__(self, categories, counts): + # todo add samples for initialization and everything to None? (or setSamples?) self.categories = categories self.counts = counts