Mercurial > hg > numerics
comparison numerics/histogram.py @ 90:6ca75832116d
wip
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 02 Mar 2015 15:58:02 -0800 |
parents | ae8b90fed06f |
children | bbe8f3e9615d |
comparison
equal
deleted
inserted
replaced
89:ae8b90fed06f | 90:6ca75832116d |
---|---|
128 for column in columns: | 128 for column in columns: |
129 histogram = Histogram(bins) | 129 histogram = Histogram(bins) |
130 histogram.add(*column) | 130 histogram.add(*column) |
131 histograms.append(histogram) | 131 histograms.append(histogram) |
132 | 132 |
133 # output delimeters | 133 # record delimeters for output |
134 data = histograms[0].keys() | 134 columns = zip(*histograms[0].keys()) |
135 for histogram in histograms: | |
136 columns.append(histogram.values()) | |
137 | |
138 # output | |
139 writer = None # TODO | |
135 | 140 |
136 if __name__ == '__main__': | 141 if __name__ == '__main__': |
137 main() | 142 main() |