16 return std::numeric_limits<double>::quiet_NaN();
23 const std::vector<double> emptyArray;
51 std::pair<int, int> indices_BetaGammaLog10;
52 if (
empty())
return {-1,-1};
61 return indices_BetaGammaLog10;
73 if ((indices_BetaGammaLog10.first == -1) && (indices_BetaGammaLog10.second == -1))
return -1.;
74 if (
empty())
return -1.;
78 std::pair<int, int> indices_IntXLog10_x2 =
80 if (indices_IntXLog10_x2.first < 0) {
83 if (indices_IntXLog10_x2.second < 0) {
89 const auto diff = y22 - y21;
99 double Est = std::clamp(Est_x2,-300.,300.);
117 if (
empty())
return -1;
118 if (indices_BetaGammaLog10.first < 0) {
121 if (indices_BetaGammaLog10.second < 0) {
124 if (indices_BetaGammaLog10.second == indices_BetaGammaLog10.first){
135 const auto diff=BetaGammaLog10_2 - BetaGammaLog10_1;
139 double Est = ((BetaGammaLog10_2 - BetaGammaLog10) * Est_1 + (BetaGammaLog10 - BetaGammaLog10_1) * Est_2) /
diff;
140 Est = std::clamp(Est,-300.,300.);