(data)
| 1284 | |
| 1285 | |
| 1286 | def getsize(data): |
| 1287 | # return smallest possible integer size for the given array |
| 1288 | maxdata = max(data) |
| 1289 | if maxdata < 256: |
| 1290 | return 1 |
| 1291 | elif maxdata < 65536: |
| 1292 | return 2 |
| 1293 | else: |
| 1294 | return 4 |
| 1295 | |
| 1296 | |
| 1297 | def splitbins(t, trace=0): |