-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements for 1D kde plotting (quantiles and compression) (#99)
* add option to not compress the data for 1d kde plots * revert ncompress_1d * use uniform subsample for 1d compression * discard zero weights in 1d kde in case there are nans, analogous to 2d * Fix for 1d compression * copy only if necessary and sort inplace in sample_compression_1d * add optional kwarg 'percentile' to allow manually adjusting plot ranges in termes of percentiles * make latest change pep conform * rename percentile to q, add docstring for q, fix bug in conversion from sigma to q * change quantiles also for fastkde; move quantile comprehension into function quantile_plot_interval * add test for kwarg q in 1d kde plots; add tests for quantile_plot_interval * add docstring for quantile_plot_interval Co-authored-by: Will Handley <wh260@cam.ac.uk>
- Loading branch information
1 parent
4f392d9
commit 8afa048
Showing
6 changed files
with
126 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters