double max = opts_.getTheoreticalMaximum();
double xScale = Math.pow(10, Math.max(0, Math.log10(max) - opts_.xResolution));
double xLogScale = 3 * opts_.xResolution * opts_.xResolution;
InvertibleFunction xFunction =
opts_.useLogScale ? new LogFunction(xLogScale, 10.0, true) : new LinearFunction(1/xScale);
int maxX = (int)xFunction.getValue(max);
data_ = new int[maxX + 1];
histogram_ = new HistogramRenderer(data_, xFunction);