Learn R Programming

HistDAWass (version 1.0.4)

WH.mat.sum: Method WH.mat.sum

Description

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.

Usage

WH.mat.sum(object1, object2)

# S4 method for MatH,MatH WH.mat.sum(object1, object2)

Arguments

object1

a MatH object

object2

a MatH object

Value

a MatH object,

Examples

Run this code
# NOT RUN {
# binding by row 
M1<-BLOOD[1:5,]
M2<-BLOOD[6:10,]
MAT<-WH.mat.sum(M1,M2)
# }

Run the code above in your browser using DataLab