9 :
std::vector<double>()
18 this->reserve(nScales);
19 const double sc = (minScale == maxScale ? minScale :
27 this->reserve(nScales);
30 for (
unsigned i=1;
i<nScales - 1; ++
i)
31 push_back(minScale +
i*step);
40 :
std::vector<double>()
43 if (!(minScale > 0.0 && maxScale > 0.0))
45 "In npstat::EquidistantInLogSpace constructor: " 46 "minimum and maximum scales must be positive");
54 this->reserve(nScales);
55 const double sc = (minScale == maxScale ? minScale :
56 sqrt(minScale*maxScale));
63 this->reserve(nScales);
64 const double logmax =
log(maxScale);
65 const double logmin =
log(minScale);
66 const double logstep = (logmax - logmin)/(nScales - 1);
68 for (
unsigned i=1;
i<nScales - 1; ++
i)
69 push_back(
exp(logmin +
i*logstep));
Equidistant sequences of points in either linear or log space.
Exceptions for the npstat namespace.
EquidistantInLinearSpace()