Method WH.mat.prod

Description

Method WH.mat.prod

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

1
2
3
4
5
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

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.