To weight each data set based on input weighting vector
Usage
weightData(dataset, weighting)
Arguments
- dataset
A list of data sets
- weighting
A vector of weighting constant for each data set
Value
A list of weighted data sets
Examples
dataset = list(matrix(runif(5000, 1, 2), nrow = 100, ncol = 50),
matrix(runif(5000, 1, 2), nrow = 100, ncol = 50))
weighting = c(1, 2)
weighted_dataset = weightData(dataset, weighting)