8 const double minScale,
const double maxScale,
const unsigned nScales)
9 : std::vector<double>()
18 this->reserve(nScales);
19 const double sc = (minScale == maxScale ? minScale :
20 (minScale + maxScale)/2.0);
27 this->reserve(nScales);
28 const double step = (maxScale - minScale)/(nScales - 1);
30 for (
unsigned i=1;
i<nScales - 1; ++
i)
31 push_back(minScale +
i*step);
39 const double minScale,
const double maxScale,
const unsigned nScales)
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));
static std::vector< std::string > checklist log
Equidistant sequences of points in either linear or log space.
Exceptions for the npstat namespace.
EquidistantInLinearSpace()