Skip to content

Commit 831a678

Browse files
committed
Refactor naming
1 parent fd574f1 commit 831a678

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ddsketch/include/ddsketch.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class DDSketch {
172172

173173
double get_quantile(const double& rank, const double& count) const;
174174

175-
static inline void check_split_pints(const double* values, uint32_t size);
175+
static inline void check_split_points(const double* values, uint32_t size);
176176
};
177177

178178
} /* namespace datasketches */

ddsketch/include/ddsketch_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,12 @@ bool DDSketch<Store, Mapping>::operator==(const DDSketch<Store, Mapping>& other)
302302
}
303303

304304
template<class Store, class Mapping>
305-
void DDSketch<Store, Mapping>::check_split_pints(const double *items, uint32_t size) {
305+
void DDSketch<Store, Mapping>::check_split_points(const double *values, uint32_t size) {
306306
for (uint32_t i = 0; i < size ; i++) {
307-
if (std::isnan(items[i])) {
307+
if (std::isnan(values[i])) {
308308
throw std::invalid_argument("Values must not be NaN");
309309
}
310-
if ((i < (size - 1)) && !(items[i] < items[i + 1])) {
310+
if ((i < (size - 1)) && !(values[i] < values[i + 1])) {
311311
throw std::invalid_argument("Values must be unique and monotonically increasing");
312312
}
313313
}

0 commit comments

Comments
 (0)