WH.mat.sum | R Documentation |
It sums two MatH
objects, i.e. two matrices of distributions,
by summing the quantile functions of histograms. This sum is consistent with
a set of distributions equipped with a L2 wasserstein metric.
WH.mat.sum(object1, object2)
## S4 method for signature 'MatH,MatH'
WH.mat.sum(object1, object2)
object1 |
a |
object2 |
a |
a MatH
object,
# binding by row
M1 <- BLOOD[1:5, ]
M2 <- BLOOD[6:10, ]
MAT <- WH.mat.sum(M1, M2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.