@@ -92,7 +92,7 @@ TEST(CubicSplines, evaluate_exp_distributed_nodes) {
9292 auto func = [](double x) { return std::exp (x); };
9393 auto def = spline_def_t ();
9494 def.f = func;
95- def.axis = std::make_unique<cubic_splines::ExpAxis <double >>(low, high, N);
95+ def.axis = std::make_unique<cubic_splines::ExpM1Axis <double >>(low, high, N);
9696 auto spline = cubic_splines::Interpolant<spline_t >(std::move (def), " " , " " );
9797 std::uniform_real_distribution<double > dis (low, high);
9898 for (int i = 0 ; i < 10'000 ; ++i) {
@@ -108,8 +108,8 @@ TEST(CubicSplines, evaluate_log_func_values_and_axis) {
108108 auto def = spline_def_t ();
109109 auto func = [](double x) { return x*x*std::log (x); };
110110 def.f = func;
111- def.f_trafo = std::make_unique<cubic_splines::ExpAxis <double >>(1 , 0 );
112- def.axis = std::make_unique<cubic_splines::ExpAxis <double >>(low, high, N);
111+ def.f_trafo = std::make_unique<cubic_splines::ExpM1Axis <double >>(1 , 0 );
112+ def.axis = std::make_unique<cubic_splines::ExpM1Axis <double >>(low, high, N);
113113 auto spline = cubic_splines::Interpolant<spline_t >(std::move (def), " " , " " );
114114 std::uniform_real_distribution<double > dis (low, high);
115115 for (int i = 0 ; i < 10'000 ; ++i) {
@@ -126,8 +126,8 @@ TEST(CubicSplines, evaluate_log_func_values_and_axis_trivial_integrand) {
126126 // this function should be a straight line in the transformed space
127127 auto func = [](double x) { return std::pow (x+1 , 10 ); };
128128 def.f = func;
129- def.f_trafo = std::make_unique<cubic_splines::ExpAxis <double >>(1 , 0 );
130- def.axis = std::make_unique<cubic_splines::ExpAxis <double >>(low, high, N);
129+ def.f_trafo = std::make_unique<cubic_splines::ExpM1Axis <double >>(1 , 0 );
130+ def.axis = std::make_unique<cubic_splines::ExpM1Axis <double >>(low, high, N);
131131 auto spline = cubic_splines::Interpolant<spline_t >(std::move (def), " " , " " );
132132 std::uniform_real_distribution<double > dis (low, high);
133133 for (int i = 0 ; i < 10'000 ; ++i) {
@@ -161,7 +161,7 @@ TEST(CubicSplines, prime_x_trafo) {
161161 auto func = [](double x) { return x * x + x + 1 ; };
162162 auto df_dx = [](double x) { return 2 * x + 1 ; };
163163 def.f = func;
164- def.axis = std::make_unique<cubic_splines::ExpAxis <double >>(low, high, N);
164+ def.axis = std::make_unique<cubic_splines::ExpM1Axis <double >>(low, high, N);
165165 auto spline = cubic_splines::Interpolant<spline_t >(std::move (def), " " , " " );
166166 std::uniform_real_distribution<double > dis (low, high);
167167 for (int i = 0 ; i < 10'000 ; ++i) {
@@ -178,7 +178,7 @@ TEST(CubicSplines, prime_y_trafo) {
178178 auto func = [](double x) { return x * x + x + 1 ; };
179179 auto df_dx = [](double x) { return 2 * x + 1 ; };
180180 def.f = func;
181- def.f_trafo = std::make_unique<cubic_splines::ExpAxis <double >>(1 , 0 );
181+ def.f_trafo = std::make_unique<cubic_splines::ExpM1Axis <double >>(1 , 0 );
182182 def.axis = std::make_unique<cubic_splines::LinAxis<double >>(low, high, N);
183183 auto spline = cubic_splines::Interpolant<spline_t >(std::move (def), " " , " " );
184184 std::uniform_real_distribution<double > dis (low, high);
0 commit comments