20 #ifndef _RELATIVEERRORTABLES_INTERNAL_HPP_
21 #define _RELATIVEERRORTABLES_INTERNAL_HPP_
23 #include "RelativeErrorTables.hpp"
28 static double HIP_LB[] =
30 0.207316195, 0.502865572, 0.882303765,
31 0.146981579, 0.335426881, 0.557052,
32 0.104026721, 0.227683872, 0.365888317,
33 0.073614601, 0.156781585, 0.245740374,
34 0.05205248, 0.108783763, 0.168030442,
35 0.036770852, 0.075727545, 0.11593785,
36 0.025990219, 0.053145536, 0.080772263,
37 0.018373987, 0.037266176, 0.056271814,
38 0.012936253, 0.02613829, 0.039387631,
42 static double HIP_UB[] =
44 -0.207805347, -0.355574279, -0.475535095,
45 -0.146988328, -0.262390832, -0.360864026,
46 -0.103877775, -0.191503663, -0.269311582,
47 -0.073452978, -0.138513438, -0.198487447,
48 -0.051982806, -0.099703123, -0.144128618,
49 -0.036768609, -0.07138158, -0.104430324,
50 -0.025991325, -0.050854296, -0.0748143,
51 -0.01834533, -0.036121138, -0.05327616,
52 -0.012920332, -0.025572893, -0.037896952,
56 static double NON_HIP_LB[] =
58 0.254409839, 0.682266712, 1.304022158,
59 0.181817353, 0.443389054, 0.778776219,
60 0.129432281, 0.295782195, 0.49252279,
61 0.091640655, 0.201175925, 0.323664385,
62 0.064858051, 0.138523393, 0.218805328,
63 0.045851855, 0.095925072, 0.148635751,
64 0.032454144, 0.067009668, 0.102660669,
65 0.022921382, 0.046868565, 0.071307398,
66 0.016155679, 0.032825719, 0.049677541
70 static double NON_HIP_UB[] =
72 -0.256980172, -0.411905944, -0.52651057,
73 -0.182332109, -0.310275547, -0.412660505,
74 -0.129314228, -0.230142294, -0.315636197,
75 -0.091584836, -0.16834013, -0.236346847,
76 -0.06487411, -0.122045231, -0.174112107,
77 -0.04591465, -0.08784505, -0.126917615,
78 -0.032433119, -0.062897613, -0.091862929,
79 -0.022960633, -0.044875401, -0.065736049,
80 -0.016186662, -0.031827816, -0.046973459
84 double RelativeErrorTables<A>::getRelErr(
const bool upperBound,
const bool oooFlag,
85 const int lgK,
const int stdDev) {
86 const int idx = ((lgK - 4) * 3) + (stdDev - 1);
87 const int sw = (oooFlag ? 2 : 0) | (upperBound ? 1 : 0);
DataSketches namespace.
Definition: binomial_bounds.hpp:38