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

show() methods #11

Closed
johnmyleswhite opened this issue Jan 17, 2013 · 2 comments
Closed

show() methods #11

johnmyleswhite opened this issue Jan 17, 2013 · 2 comments
Labels

Comments

@johnmyleswhite
Copy link
Member

As we add more complex distributions like the multivariate normal it might be helpful to make formal show() methods for different distributions. I would propose the following defaults:

  • Show states the type of the distribution
  • Show shows the parameters of the distribution line-by-line
  • Show provides the mean and variance of the distribution as the last two lines

The last pieces are arguably superfluous, but I think they would help when working with things like the Beta and Gamma distributions for which the mean and variance are never obvious to me without doing an explicit calculation.

@johnmyleswhite
Copy link
Member Author

I added a draft of this in 11632df

It should give you a flavor of how this kind of show method would feel.

@johnmyleswhite
Copy link
Member Author

Since no one's objected to this, I'm going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant