lshift/diffa — pull request #140 by aprescott (2012-05-01 14:25:39+00:00)
Title: Rationalize transformBucketSize and callers

There seems to have been some confusion between `maxValue` and `maxSize`, and whether or not `transformBucketSize` was capping its output value. The `opts` keys have been renamed to try and make it clearer at the call site that `transformBucketSize` is mapping `[a, b]` to `[c, d]`.

In the original `transformBucketSize`, the maximum value was specified as a separate value to what is now `outputMax`, but this has been changed so the two notions are the same, as that's a better match for the intention of 5d5544c586019f4772cd7a37f56c0e44181be220.

I should note I haven't properly tested this.