67 (
double *ep_list,
size_t ep_list_len,
68 side *ep_conv,
size_t )
74 bin.insert(
bin.begin(), ep_list, ep_list+ep_list_len);
96 if ((conv ==
LEFT && *data_point >
bin[nbin]) ||
97 (conv ==
RIGHT && *data_point >=
bin[nbin])) {
99 else if ((conv ==
LEFT && *data_point <= *
bin.begin()) ||
100 (conv ==
RIGHT && *data_point < *
bin.begin())) {
107 int upperLimit =
bin.size()-1;
109 loc = (upperLimit-1)/2;
110 while (*data_point <
bin[loc] || *data_point >
bin[loc+1]) {
111 if (*data_point <
bin[loc]) {upperLimit = loc;}
112 else {lowerLimit = loc;}
113 loc = (upperLimit+lowerLimit)/2;
115 if (
bin[loc] == *data_point && conv ==
RIGHT) {