public class BootstrapDataSynthesizer extends java.lang.Object implements DataSource
Constructor and Description |
---|
BootstrapDataSynthesizer(java.lang.String[] filenames,
int components,
int samples,
java.lang.String type) |
BootstrapDataSynthesizer(java.lang.String[] filenames,
int components,
int samples,
java.lang.String type,
int seed) |
BootstrapDataSynthesizer(java.lang.String[] filenames,
int components,
int samples,
java.lang.String type,
java.util.Random ran) |
public BootstrapDataSynthesizer(java.lang.String[] filenames, int components, int samples, java.lang.String type)
filenames
- The name of the data files containing the repeats.components
- The number of values in each voxel.samples
- The number of bootstrap samples to generate from each voxel.type
- A string indicating the data type: either "char", "short",
"int", "long", "float" or "double".public BootstrapDataSynthesizer(java.lang.String[] filenames, int components, int samples, java.lang.String type, int seed)
filenames
- The name of the data files containing the repeats.components
- The number of values in each voxel.samples
- The number of bootstrap samples to generate from each voxel.type
- A string indicating the data type: either "char", "short",
"int", "long", "float" or "double".seed
- Seed for the random number generator.public BootstrapDataSynthesizer(java.lang.String[] filenames, int components, int samples, java.lang.String type, java.util.Random ran)
filenames
- The name of the data files containing the repeats.components
- The number of values in each voxel.samples
- The number of bootstrap samples to generate from each voxel.type
- A string indicating the data type: either "char", "short",
"int", "long", "float" or "double".ran
- A random number generator.public double[] nextVoxel() throws DataSourceException
DataSource
nextVoxel
in interface DataSource
DataSourceException
public boolean more()
DataSource
more
in interface DataSource