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