20Kernel::Logger
g_log(
"LogarithmScale");
27 g_log.
error(
"Error: logarithm base must be a positive number");
36 double a = 1.0 / log(
m_base);
40 if (gd.front() <= 0) {
41 g_log.
error(
"LogarithmScale::transform Error: negative values");
46 double startX = a * log(gd.front());
47 double endX = a * log(gd.back());
48 double spacing = (endX - startX) /
double(
n);
50 double x = startX + spacing;
51 for (
auto it = gd.begin() + 1; it != gd.end() - 1; it++) {
double m_base
The scaling transformation.
void transform(std::vector< double > &gd) override
The scaling transformation. Define in derived classes.
void error(const std::string &msg)
Logs at error level.
Kernel::Logger g_log("ExperimentInfo")
static logger object