Given a matrix of densely observed functional data, create a sparsified sample for experimental purposes
Sparsify(samp, pts, sparsity, aggressive = FALSE, fragment = FALSE)
A list of length 2, containing the following fields:
A list of observation time points for each sample.
A list of values for each sample, corresponding to the time points.
A matrix of densely observed functional data, with each row containing one sample.
A vector of grid points corresponding to the columns of samp
.
A vector of integers. The number of observation per sample is chosen to be one of the elements in sparsity with equal chance.
Sparsify in an "aggressive" manner making sure that near-by readings are excluded.
Sparsify the observations into fragments, which are (almost) uniformly distributed in the time domain. Default to FALSE as not fragmenting. Otherwise a positive number specifying the approximate length of each fragment.