-
Notifications
You must be signed in to change notification settings - Fork 423
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
linear transformations on MvNormal #307
Comments
Dup of #298? |
Linear transformations are more than scaling. I think this issue can stay as a separate one. |
I am running into the same problem trying to port a Kalman filter now from |
It would be good to have some way to do this, at least for constants. Mathematically, I'm a bit reluctant to overload Alternatively we could overload |
I hadn't considered making the distinction between an object that
represents a distribution and an object that represents a random variable
following that distribution, but I agree that the distinction certainly can
exist. Can we think of a case where this distinction serves a purpose?
…On Fri, Oct 12, 2018 at 7:00 PM Simon Byrne ***@***.***> wrote:
It would be good to have some way to do this, at least for constants.
Mathematically, I'm a bit reluctant to overload +/* directly: the objects
are intended to be distributions, not random variables. But maybe that
isn't such a big deal?
Alternatively we could overload map (e.g. so that you would do map(x -> x
+ k, d)), but that would require much more "plumbing" to get it to work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#307 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjds8jFMo0OkbxJZrVrbLYLONz-Z6dRks5ukR71gaJpZM4C5dOC>
.
|
For example you would not overload |
I mean, the only other interpretation it could mean would be transforming it as a measure, but (a) that isn't very useful (since it would no longer be a probability measure), and (b) we don't treat it as a measure in other contexts, e.g. defining
That's a great idea! |
One thing, for scalar |
@JuliaRegistrator register() |
Registration pull request created: JuliaRegistries/General/7761 After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version. This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:
|
Are these functions within the scope of the package? These seem harmless
More contentious is allowing
+(x::MvNormal,y::MvNormal)
, assuming independence.My main motivation was from seeing the StateSpace package that @ElOceanografo wrote. For example: https://github.com/ElOceanografo/StateSpace.jl/blob/master/src/KalmanFilter.jl#L49 . Having functions for linear transformations of Multivariate Normal distributions might improve readability in only a minor way, but they might be worth including in Distributions anyway.
The text was updated successfully, but these errors were encountered: