crwtransform | R Documentation |
crwtransform
: returns the centers and the radii of bins of a distributionCenters and ranges calculation for bins of a histogram. It is useful for a very fast computation of statistics and methods based on the L2 Wassertein distance between histograms.
crwtransform(object)
## S4 method for signature 'distributionH'
crwtransform(object)
object |
a |
A list containing
$Centers |
The midpoints of the bins of the histogram |
$Radii |
The half-lenghts of the bins of the histogram |
$Weights |
The relative frequencies or the probailities associated with each bin (the sum is equal to 1) |
Antonio Irpino
Irpino, A., Verde, R., Lechevallier, Y. (2006) Dynamic clustering of histograms using Wasserstein metric, In: Proceedings of COMPSTAT 2006, Physica-Verlag, 869-876
## ---- A mydist distribution ----
mydist <- distributionH(x = c(1, 2, 3, 10), p = c(0, 0.1, 0.5, 1))
## ---- Compute the cfd value for q=5 (not observed) ----
crwtransform(mydist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.