Skip to content

Kll longs sketch #561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 4, 2024
Merged

Kll longs sketch #561

merged 5 commits into from
Jun 4, 2024

Conversation

leerho
Copy link
Contributor

@leerho leerho commented May 23, 2024

In the main code, nearly all the corrections are in the Javadocs.

However, in the test code, there were many places where he was comparing a long vs a float ('cause he copied the code from the float classes).

Also, he didn't check the test classes with printing enabled. There were
numerous places where the printf format expected an "%f" that should have been a "%d".

Nonetheless, Zac did an amazing job of creating this KllLongsSketch, considering the complexity of the code!

I also did a coverage tests and made sure that the coverage of the "longs" classes were very close to the coverage of the comparable "doubles" and "floats" classes -- and they were! This means that he was able to faithfully translate all the relevant tests from float to longs and I did not find any gaps in testing.

ZacBlanco and others added 3 commits May 1, 2024 19:16
In the main code, nearly all the corrections are in the Javadocs.

However, in the test code, there were many places where he was comparing
a long vs a float ('cause he copied the code from the float classes).

Also, he didn't check the test classes with printing enabled. There were
numerous places where the printf format expected an "%f" that should
have been a "%d".

Nonetheless, Zac did an amazing job of creating this KllLongsSketch,
considering the complexity of the code!

I also did a coverage tests and made sure that the coverage of the
"longs" classes were very close to the coverage of the comparable
"doubles" and "floats" classes -- and they were!  This means that he was
able to faithfully translate all the relevant tests from float to longs
and I did not find any gaps in testing.
@leerho leerho marked this pull request as draft May 23, 2024 16:35
leerho added 2 commits May 23, 2024 14:32
During testing, these changes make sure we testing an expected long (vs
a float) to the actual long

In a few cases in "doubles sketch" tests I found an expected float being
tested against the actual double.

These are all "cut and paste" errors.
@leerho
Copy link
Contributor Author

leerho commented May 23, 2024

I admit a few of these files are KLL Doubles Sketches where my search string picked up the same errors in those files, so I just corrected them and included them here. Going forward I will create a separate PR for these other extraneous errors.

@leerho leerho marked this pull request as ready for review May 23, 2024 22:02
@leerho
Copy link
Contributor Author

leerho commented May 25, 2024

This is difficult to review because this view does not show the context.

  • To see the changes I made to Zac's code you will need to compare this branch, kll_longs_sketch, at commit d41aafc against this branch at commit 201869e.
  • Another way to review this is to compare this code side-by-side with the relevant classes from the KllDoublesSketch. They should line up exactly except for the difference in the primitive, "double" verses "long". I use a separate application for this.

@leerho leerho merged commit b2a7b3f into master Jun 4, 2024
4 checks passed
@leerho leerho deleted the kll_longs_sketch branch June 4, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants