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

Fix support of Dirac and LocationScale #1346

Merged
merged 4 commits into from
Jun 16, 2021
Merged

Fix support of Dirac and LocationScale #1346

merged 4 commits into from
Jun 16, 2021

Conversation

devmotion
Copy link
Member

This PR fixes the support of Dirac and LocationScale.

Currently:

julia> d = LocationScale(1//2, 1//3, Categorical([0.2, 0.8]));

julia> support(d)
1:1

julia> d = Dirac(3.4);

julia> support(d)
3:3

With this PR:

julia> d = LocationScale(1//2, 1//3, Categorical([0.2, 0.8]));

julia> support(d)
5//6:1//3:7//6

julia> d = Dirac(3.4)
Dirac{Float64}(value=3.4)

julia> support(d)
(3.4,)

@andreasnoack andreasnoack merged commit 239a9fa into master Jun 16, 2021
@andreasnoack andreasnoack deleted the dw/support branch June 16, 2021 08:48
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.

3 participants