
The data sketch computation.
Sketch(Data, W, ind.col = 1:ncol(Data), ncores = 1, parallel = FALSE)
A Filebacked Big Matrix n x N. Data signals are stored in the matrix columns.
A frequency matrix m x n. The frequency vectors are stored in the matrix rows.
Column indeces for which the data sketch is computed. By default all matrix columns.
Number of used cores. By default 1. If parallel
= FALSE, ncores defines a number of data splits
on which the sketch is computed separatelly.
logical parameter that indicates whether computations are performed on several cores in parallel or not.
The data sketch vector.
The sketch of the given data collection
DBLP:journals/corr/KerivenBGP16chickn.
# NOT RUN {
X = matrix(rnorm(1000), ncol=100, nrow = 10)
X_FBM = bigstatsr::FBM(init = X, ncol=100, nrow = 10)
W = GenerateFrequencies(Data = X_FBM, m = 20, N0 = 100, TypeDist = "AR")$W
SK1 = Sketch(X_FBM, W)
SK2 = Sketch(X_FBM, W, parallel = TRUE, ncores = 2)
all.equal(SK1, SK2)
# }
Run the code above in your browser using DataLab