public class GroupResampler extends Object implements MultivariateResampler
Constructor and Description |
---|
GroupResampler(Matrix sample)
Constructs a re-sampler that treats each row as a group object, shuffling
the groups/rows.
|
GroupResampler(Matrix sample,
Resampler resampler)
Constructs a re-sampler that treats each row as a group object, shuffling
the groups/rows.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
newResample()
Gets a resample from the original sample.
|
void |
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
|
public GroupResampler(Matrix sample, Resampler resampler)
sample
- a multivariate sampleresampler
- a univariate re-sampler to shuffle the row indices, from
1 to sample lengthpublic GroupResampler(Matrix sample)
sample
- a multivariate samplepublic void seed(long... seeds)
Seedable
public Matrix newResample()
MultivariateResampler
newResample
in interface MultivariateResampler
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.