unsigned int getInterval(const interval & range, unsigned int numIntervals) const { return std::floor((double)interval::difference(parameter, range.getMin()) * numIntervals / range.getExtent()); }
double norm(const interval & range, unsigned int count) { return range.empty() ? 0.0 : mse / ((double)count * range.getExtent() * range.getExtent()); }