changeset 83:01b8009facc8

stub: generation
author Jeff Hammel <k0scist@gmail.com>
date Sun, 01 Mar 2015 12:56:32 -0800
parents 738a2400f0f3
children bc60ccf969ea
files numerics/generate.py numerics/histogram.py
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/numerics/generate.py	Sun Mar 01 12:56:32 2015 -0800
@@ -0,0 +1,3 @@
+def frange(xmin, xmax, n):
+    """float range"""
+    raise NotImplementedError('TODO') # -> record TODO items
--- a/numerics/histogram.py	Sun Mar 01 09:42:35 2015 -0800
+++ b/numerics/histogram.py	Sun Mar 01 12:56:32 2015 -0800
@@ -114,5 +114,13 @@
     if options.max is None:
         options.min = max([max(column) for column in columns])
 
+    if not options.nbins:
+        # find number of bins, if not specified
+        # We'll use a guess of 2 items per bin, on average
+        options.nbins = len(columns[0]) / 2
+
+    # make some histograms
+
+
 if __name__ == '__main__':
     main()