WH.mat.prod {HistDAWass}R Documentation

Method WH.mat.prod

Description

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.

Usage

WH.mat.prod(object1, object2, ...)

## S4 method for signature 'MatH,MatH'
WH.mat.prod(object1, object2, traspose1 = FALSE, traspose2 = FALSE)

Arguments

object1

a MatH object

object2

a MatH object

...

other optional parameters

traspose1

a logical value, default=FALSE. If TRUE trasposes object1

traspose2

a logical value, default=FALSE. If TRUE trasposes object2

Value

a matrix of numbers

Examples


M1 <- BLOOD[1:5, ]
M2 <- BLOOD[6:10, ]
MAT <- WH.mat.prod(M1, M2, traspose1 = TRUE, traspose2 = FALSE)

[Package HistDAWass version 1.0.8 Index]