WH.mat.prod | R Documentation |
It is the matrix product of two MatH
objects, i.e. two matrices of distributions,
by using the dot product of two histograms that is consistent with
a set of distributions equipped with a L2 wasserstein metric.
WH.mat.prod(object1, object2, ...) ## S4 method for signature 'MatH,MatH' WH.mat.prod(object1, object2, traspose1 = FALSE, traspose2 = FALSE)
object1 |
a |
object2 |
a |
... |
other optional parameters |
traspose1 |
a logical value, default=FALSE. If TRUE trasposes object1 |
traspose2 |
a logical value, default=FALSE. If TRUE trasposes object2 |
a matrix of numbers
M1 <- BLOOD[1:5, ] M2 <- BLOOD[6:10, ] MAT <- WH.mat.prod(M1, M2, traspose1 = TRUE, traspose2 = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.