divide_samples {SUMO} | R Documentation |
A global variable used in multiple functions.
divide_samples(n_samples, num, min_size)
n_samples |
number of samples |
num |
number of factors |
min_size |
Minimum length of any samples scores |
A list of numeric vectors.
If num == 1
, the list contains a single vector representing a random selection of between 10% and 55% of the elements from the full dataset.
If num > 1
, the list contains num
vectors, each representing 75% of the elements from one of the num
segments of the dataset.
The segmentation ensures that all segments are at least the size of min_size
.
If the segment sizes are too small, the function retries the segmentation process.