1 #ifndef jb_histogram_binning_liner_interpolation_hpp 2 #define jb_histogram_binning_liner_interpolation_hpp 23 template <
typename sample_type>
25 sample_type x_a, sample_type x_b,
double y_a,
double s,
double q) {
26 return sample_type(std::floor(x_a + (q - y_a) * (x_b - x_a) / s));
31 #endif // jb_histogram_binning_linear_interpolation_hpp sample_type histogram_binning_linear_interpolation(sample_type x_a, sample_type x_b, double y_a, double s, double q)
Convenience function to implement the binning_strategy_concept.
The top-level namespace for the JayBeams library.