bool far(const ScalarParameter<T> & r, const interval & range, unsigned int numIntervals) const { return !range.empty() && getInterval(range, numIntervals) != r.getInterval(range, numIntervals); }
double norm(const interval & range, unsigned int count) { return range.empty() ? 0.0 : mse / ((double)count * range.getExtent() * range.getExtent()); }