> Am 08.03.2017 um 11:28 schrieb Schuhmacher, Dominic
> :
>
> ...
>>>
>>> If you have no particular need for binning, check out the function
>>> pppdist in the R-package spatstat, which offers a more flexible way
>>> to deal with point patterns of different size.
>>
>>
>> Well, this is not cl
Dear Lorenzo,
No, the code does not do what you are after. R-package transport is for point
patterns and histograms in two and more dimensions. You have a distribution in
one dimension.
> 1) two distributions with the same bins (I identify each bin by the
> central point in the bin).
>
> n_bin
Dear Dominic,
Thanks a lot for the quick reply.
Just a few questions to make sure I got it all right (I now understand that
transport and spatstat in particular can do much more than I need
right now).
Essentially I am after the Wasserstein distance between univariate
distributions (and it would b
Dear Lorenzo,
The code you have attached (if you replace 00 by 50) generates two sets of 50
points each that are uniformly distributed on the unit square [0,1]^2 and then
computes the Wasserstein-1 distance between them assuming that each point has
mass 1/50. Do the following to get a plot of t
4 matches
Mail list logo