Skip to content

Commit 1dba266

Browse files
corrected comment
1 parent a344cd8 commit 1dba266

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/datasketches/sampling/VarOptCrossLanguageTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void generateSketchLongSampling() throws IOException {
6969
for (long i = 0; i < 2000; ++i) {
7070
sketch.update(i, 1.0);
7171
}
72-
// heavy items have negative weights to allow a simple predicate to filter
72+
// negative heavy items to allow a simple predicate to filter
7373
sketch.update(-1L, 100000.0);
7474
sketch.update(-2L, 110000.0);
7575
sketch.update(-3L, 120000.0);
@@ -89,7 +89,7 @@ public void generateUnionDoubleSampling() throws IOException {
8989
for (int i = 0; i < n1; ++i) {
9090
sketch.update(1.0 * i, 1.0);
9191
}
92-
sketch.update(-1.0, n1 * n1); // heavy items have negative weights to allow a simple predicate to filter
92+
sketch.update(-1.0, n1 * n1); // negative heavy item to allow a simple predicate to filter
9393

9494

9595
final VarOptItemsUnion<Double> union = VarOptItemsUnion.newInstance(kMax);

0 commit comments

Comments
 (0)