changeset 276:78922b4de3bf

minor change
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 14 Dec 2012 01:01:13 -0500
parents 7833140539f9
children 21f14fadd098
files python/utils.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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