Skip to content
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

better naming, no forced compression #423

Merged
merged 2 commits into from
Feb 20, 2024
Merged

better naming, no forced compression #423

merged 2 commits into from
Feb 20, 2024

Conversation

AlexanderSaydakov
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Feb 13, 2024

Pull Request Test Coverage Report for Build 7935029387

Details

  • -6 of 39 (84.62%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 98.704%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tdigest/include/tdigest_impl.hpp 30 36 83.33%
Totals Coverage Status
Change from base Build 7893537380: 0.005%
Covered Lines: 16377
Relevant Lines: 16592

💛 - Coveralls

Copy link
Contributor

@jmalkin jmalkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I didn't quite understand but assuming the logic for that is correct it otherwise looks good.

if (upper == centroids_.begin()) throw std::logic_error("upper == begin in get_rank()");
if (value < lower->get_mean()) --lower;
if (upper == centroids_.end() || (upper != centroids_.begin() && !((upper - 1)->get_mean() < value))) --upper;
if (upper == centroids_.end() || !((upper - 1)->get_mean() < value)) --upper;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this does so I'll have to trust that it's correct

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a check already just above that if (upper == begin) throw

@AlexanderSaydakov AlexanderSaydakov merged commit 4052e03 into master Feb 20, 2024
8 checks passed
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.

None yet

3 participants