-
Notifications
You must be signed in to change notification settings - Fork 32
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
Normalizing a measure #128
Normalizing a measure #128
Comments
Great idea! A few comments: First,
I think we can make it flexible, so you can define either. For density(μ, ν::AbstractMeasure, x) = exp(logdensity(μ, ν, x))
density(μ, x) = exp(logdensity(μ, x)) Usually |
In that case, I think it makes sense to have an un-implemented |
@sethaxen what do you think of having struct Integral{F,M}
f::F
μ::M
end By default it just stores the request in a struct. In general there's no clear efficient way to do integration, so the user needs to be able to select between lots of different algorithms. And maybe we have an extension package to conenct to QuadGK, etc? |
Following up on this, I like the idea of an interface with numerical integration. Could it be a small side package (to outsource the Quadrature dependencies) that mostly defines, say, a function |
Maybe it could be even simpler? A measure "knows" its domain, so the package could just depend on The only reason not to have this in MeasureTheory itself is that Quadrature.jl has lots of dependencies, and we need to keep the main package a little more focused. |
Yes but in that case it means that you cannot apply a measure to arbitrary sets. For instance, if you have a Poisson process on R^n but you want to simulate it on a box, you need to define a local measure restricted to that box instead of evaluating the global measure on this box subset. |
Oh, I guess we're starting to split the conversation in different threads. I just made a related comment here: #130 (comment) |
In JuliaManifolds/ManifoldMeasures.jl#7 we were discussing that we need a way to map an (unnormalized) Hausdorff measure to the corresponding probability measure by normalizing. This seems general enough that it could be defined here.
What about something like this?
Perhaps there is a more measure-theoretic term than "normalization", and we should not then overload
normalize
. In the case of a Hausdorff measure,total_mass
would compute the volume/area of the manifold in some embedded metric space.It might be preferable to define
log_total_mass
instead.The text was updated successfully, but these errors were encountered: