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

RFC: Officially allow/document overriding distribution support type #699

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

GordStephen
Copy link
Contributor

Removes strict coupling between continuous/discrete distributions and support types, as discussed in #681.

No actual new code here, just an update to the the docs to flag the assumptions about support types of different distributions and the ability to override the defaults. The eltype(::Type{<:ValueSupport}) methods are unused and wouldn't be accurate anyways in the case of an override, so they're removed.

This sets the stage for allowing discrete non-integer-support distributions (e.g. #634 and #661).

@GordStephen
Copy link
Contributor Author

Any concerns with this?

@GordStephen
Copy link
Contributor Author

Bumping this again. I'd like to keep moving forward with #634 but this is a blocker for it.

@andreasnoack
Copy link
Member

Some of the fallbacks assume that the outcomes are in N_0 which was where I stalled when looking into fixing the categorical. Have you thought about how to handle that?

@GordStephen
Copy link
Contributor Author

What do you mean by N_0?

@andreasnoack
Copy link
Member

andreasnoack commented Jan 21, 2018 via email

@matbesancon
Copy link
Member

It would fix different problems to relax this assumption and allow moving on with things like #661

@matbesancon
Copy link
Member

@GordStephen this branch is still on Julia 0.6, could you rebase on master?

@GordStephen GordStephen force-pushed the gs/decouple-supportvalue-eltype branch from dce5af4 to 1b72bbf Compare October 26, 2018 01:01
@GordStephen
Copy link
Contributor Author

Ok, the branch is now rebased.

@matbesancon
Copy link
Member

Thanks, merging this in 24 hours if no objection.

@matbesancon matbesancon merged commit ad271d2 into master Oct 26, 2018
@matbesancon matbesancon deleted the gs/decouple-supportvalue-eltype branch October 26, 2018 09:15
@matbesancon
Copy link
Member

thanks @GordStephen

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.

4 participants