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

histogram: fix test for downsampling histograms #81

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

mihirn
Copy link
Contributor

@mihirn mihirn commented Oct 18, 2023

The downsample() test uses both an incrementing factor for the
downsampling as well as a mutable reference as the baseline.
This makes the effective downsampling rate increase at a non-linear
rate (1, 3, 6, ..). Fix by cloning the histogram and using a non-mutable
reference as the baseline.

The downsample() test uses both an incrementing factor for the
downsampling as well as a mutable reference as the baseline.
This makes the effective downsampling rate increase at a non-linear
rate (1, 3, 6, ..). Fix by cloning the histogram and using a non-mutable
reference as the baseline.
@mihirn mihirn requested a review from brayniac October 18, 2023 03:16
@mihirn mihirn merged commit 7c877f0 into pelikan-io:main Oct 18, 2023
@mihirn mihirn deleted the msn/fix-downsample-test branch October 18, 2023 18:04
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.

2 participants