File tree Expand file tree Collapse file tree
src/test/java/org/apache/datasketches/sampling Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments