public abstract class WildBootstrapDataSynth extends java.lang.Object implements DataSource
Constructor and Description |
---|
WildBootstrapDataSynth(DataSource input,
DW_Scheme scheme,
int samples) |
WildBootstrapDataSynth(DataSource input,
DW_Scheme scheme,
int samples,
int seed) |
WildBootstrapDataSynth(DataSource input,
DW_Scheme scheme,
int samples,
java.util.Random ran)
This is the constructor that actually does everything, so ensure that this eventually gets
called.
|
Modifier and Type | Method and Description |
---|---|
boolean |
more()
Tests whether there are unprocessed voxels in the data source.
|
double[] |
nextVoxel()
Gets the next bootstrap sample of the raw data from this data source.
|
void |
setHC2()
Set the constant used in heteroscedasticity term: HC2 = -0.5, or HC3 = -1.0.
|
void |
setHC3()
Set the constant used in heteroscedasticity term: HC2 = -0.5, or HC3 = -1.0.
|
void |
setSourceData(double[] inputData)
Set the source data directly.
|
void |
setSourceData(float[] inputData)
Set the source data directly.
|
public WildBootstrapDataSynth(DataSource input, DW_Scheme scheme, int samples)
input
- A data source that should provide voxel-order data. If null
,
the user must provide data with the setSourceData
method.scheme
- The DW_Scheme
object with the details of the scanner
sequence of the raw data.samples
- The number of bootstrap samples to generate from each voxel. Set to -1 for
unlimited samples.public WildBootstrapDataSynth(DataSource input, DW_Scheme scheme, int samples, int seed)
input
- A data source that should provide voxel-order data. If null
,
the user must provide data with the setSourceData
method.scheme
- The DW_Scheme
object with the details of the scanner
sequence of the raw data.samples
- The number of bootstrap samples to generate from each voxel. Set to -1 for
unlimited samples.seed
- Seed for the random number generator.public WildBootstrapDataSynth(DataSource input, DW_Scheme scheme, int samples, java.util.Random ran)
input
- A data source that should provide voxel-order data. If null
,
the user must provide data with the setSourceData
method.scheme
- The DW_Scheme
object with the details of the scanner
sequence of the raw data.samples
- The number of bootstrap samples to generate from each voxel. Set to -1 for
unlimited samples.ran
- A random number generator.public final double[] nextVoxel()
nextVoxel
in interface DataSource
DataSourceException
- if no more voxels are available.public boolean more()
DataSource
more
in interface DataSource
public void setSourceData(float[] inputData)
public void setSourceData(double[] inputData)
public void setHC2()
public void setHC3()