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