-
Notifications
You must be signed in to change notification settings - Fork 9
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
Question about optimal transport and possibilities of OptimalTransport.jl #157
Comments
When you say histogram, do you mean the sum of diracs? |
Do you have a more formal (mathematical) description of your problem? I don't think there is an easy function that does what you are looking for. It looks like more as an optimization problem, such as Linear Programming. |
The p-Wasserstein distance between two univariate histograms
Of course, the factor Edit: An important assumption that I forgot to mention is of course that both |
It seems this optimization problem can be solved analytically at least for |
Dear @davibarreira end @devmotion, thank you for having answered my question! I think that what @devmotion suggests is perfectly correct, it looks like a good idea to try to minimize the p-Wasserstein distance, and your solution to the optimization problem also intuitively makes sense. However, it might not work in the setting I am envisaging. Therefore let me clarify: We have a grid Now we wish to obtain a new histogram |
@davibarreira Is it now more clear what I meant with histogram? It's like, you specify a number of bins and then you evaluate a probability density function on that grid. |
Yes, it's clear. But the package does not have a solution to your problem. Is your grid 1D? If yes, you could use the solution @devmotion proposed. Otherwise, I don't think there is an easy answer. |
Yeah, so just for completeness let me add the form of the optimization problem that I am wishing to solve.
|
Sorry if this is not the right place to ask this kind of questions.
I am looking for an algorithm that has the following characteristics (see below).
Is there any functionality in
OptimalTransport.jl
that could be used for this?Many thanks!
INPUT:
OUTPUT:
(I can of course give more information about the problem is the description is not very clear to you).
The text was updated successfully, but these errors were encountered: