optional arguments to the
transport::wasserstein() or
T4transport::wasserstein() functions. Warning: the
latter function is very slow.
y
the second sample as a vector
log
logical. Take the lograthm of the data before
calculating the distances?
package
the name of the package that provides the 2D
Wasserstein distance. Currently, this can be either
'transport' or T4transport.
verbose
logical. If TRUE, gives progress updates
during the construction of the dissimilarity matrix.
Author
The default S3 method was written by Pieter Vermeesch,
using modified code from Dominic Schuhmacher's transport
package (transport1d function), as implemented in
IsoplotR.