You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Convolve for DiscreteNonParametric (Redux) (#1850)
* Add convolve for DiscreteNonParametric
DiscreteNonParametric convolution has a very nice trivial closed form. It was not implemented.
This pull request implements it.
* Update src/convolution.jl
Co-authored-by: David Widmann <[email protected]>
* Use Set, instead of splatting.
Co-authored-by: David Widmann <[email protected]>
* Fix type stability of elements.
Doesn't preserve the type of the Vector, but perhaps this is better ....
Co-authored-by: David Widmann <[email protected]>
* Apply suggestions from code review
use functions to access the support and probabilities, and write as one loop.
Co-authored-by: David Widmann <[email protected]>
* Added a test set.
Removed check args:
We know the convovultion is a proper distribution.
* minor rename for consistency
* Formatting, test improvements suggested by devmotion (and a few more)
* Formatting
---------
Co-authored-by: iampritishpatil <[email protected]>
Co-authored-by: David Widmann <[email protected]>
0 commit comments