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

Add Convolve for DiscreteNonParametric (Redux) #1850

Merged
merged 10 commits into from
May 30, 2024

Conversation

mharradon
Copy link
Contributor

@mharradon mharradon commented Apr 13, 2024

Originally implemented by @iampritishpatil here: #1523

This PR additionally implements a number of test improvements suggested by @devmotion. Happy to merge this or complete the original PR.

Thanks!

iampritishpatil and others added 10 commits March 22, 2022 17:34
DiscreteNonParametric convolution has a very nice trivial closed form. It was not implemented.

This pull request implements it.
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
Doesn't preserve the type of the Vector, but perhaps this is better ....

Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
use functions to access the support and probabilities, and write as one loop.

Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
Removed check args:
We know the convovultion is a proper distribution.
@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.95%. Comparing base (f33af97) to head (b8dd036).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1850      +/-   ##
==========================================
+ Coverage   85.94%   85.95%   +0.01%     
==========================================
  Files         144      144              
  Lines        8656     8667      +11     
==========================================
+ Hits         7439     7450      +11     
  Misses       1217     1217              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

I had an idea for a few performance improvements but I think it's better to play around with these in a follow-up PR. Thank you!

@devmotion devmotion merged commit b356da0 into JuliaStats:master May 30, 2024
11 of 14 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

4 participants