Method WH.vec.sum

Description

Method WH.vec.sum

Compute a histogram that is the weighted sum of the set of histograms contained in a MatH object, i.e. a matrix of histograms, consistent with a set of distributions equipped with a L2 wasserstein metric.

Usage

1
2
3
4
WH.vec.sum(object, ...)

## S4 method for signature 'MatH'
WH.vec.sum(object, w = numeric(0))

Arguments

object

a MatH object

...

optional arguments

w

it is possible to add a vector of weights (positive numbers) having the same size of the MatH object, default = equal weights for all cells

Value

a distributionH object, i.e. a histogram

Examples

1
2
3
4
hsum<-WH.vec.sum(BLOOD)
# generate a set of random weights
RN<-runif(get.MatH.nrows(BLOOD)*get.MatH.ncols(BLOOD))
hsum<-WH.vec.sum(BLOOD,w=RN)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.