| register | R Documentation |
Given two distributionH objects, returns two equivalent
distributions sharing the same cdf values (the union of the two p
vectors). This is the basis for computing the statistics based on the L2
Wasserstein distance.
register(object1, object2)
object1, object2 |
Two |
A list: the two distributionH objects, with the same p
slot, and a matrix with their quantiles and the common cdf.
Irpino, A., Lechevallier, Y. and Verde, R. (2006): Dynamic clustering of histograms using Wasserstein metric In: Rizzi, A., Vichi, M. (eds.) COMPSTAT 2006. Physica-Verlag, Berlin, 869-876.
mydist1 <- distributionH(c(1, 2, 3), c(0, 0.4, 1))
mydist2 <- distributionH(c(7, 8, 10, 15), c(0, 0.2, 0.7, 1))
regDist <- register(mydist1, mydist2)
regDist[[1]]@p
regDist[[1]]@x
regDist[[2]]@x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.