public interface Sampling
| Modifier and Type | Method and Description |
|---|---|
static int[] |
random(int n,
double subsample)
Random sampling.
|
static int[] |
strateified(int[] category,
double subsample)
Stratified sampling.
|
static int[] random(int n,
double subsample)
n - the size of samples.subsample - sampling rate. Draw samples with replacement if it is 1.0.static int[] strateified(int[] category,
double subsample)
category - the strata labels.subsample - sampling rate. Draw samples with replacement if it is 1.0.