Package com.bayesserver.data.sampling
Class DataSamplingOptions
- java.lang.Object
-
- com.bayesserver.data.sampling.DataSamplingOptions
-
public final class DataSamplingOptions extends Object
Options for data sampling.
-
-
Constructor Summary
Constructors Constructor Description DataSamplingOptions()
Initializes a new instance of DataSamplingOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExcludedVariables
getMissingDataExclusions()
Variables can be added, to indicate that they should not generate missing values.double
getMissingDataProbability()
When positive, sets a certain percentage of values to missing (except whengetMissingDataProbabilityMin()
has a value).Double
getMissingDataProbabilityMin()
When set, the missing data probability for each case varies randomly betweengetMissingDataProbabilityMin()
andgetMissingDataProbability()
.Integer
getSequenceLength()
The sequence length generated for each sample from networks with temporal nodes.void
setMissingDataProbability(double value)
When positive, sets a certain percentage of values to missing (except whengetMissingDataProbabilityMin()
has a value).void
setMissingDataProbabilityMin(Double value)
When set, the missing data probability for each case varies randomly betweengetMissingDataProbabilityMin()
andgetMissingDataProbability()
.void
setSequenceLength(Integer value)
The sequence length generated for each sample from networks with temporal nodes.
-
-
-
Method Detail
-
getSequenceLength
public Integer getSequenceLength()
The sequence length generated for each sample from networks with temporal nodes. This value can be changed between calls toDataSampler.takeSample(com.bayesserver.inference.Evidence, com.bayesserver.RandomNumberGenerator, com.bayesserver.data.sampling.DataSamplingOptions)
to generate varying length sequences.
-
setSequenceLength
public void setSequenceLength(Integer value)
The sequence length generated for each sample from networks with temporal nodes. This value can be changed between calls toDataSampler.takeSample(com.bayesserver.inference.Evidence, com.bayesserver.RandomNumberGenerator, com.bayesserver.data.sampling.DataSamplingOptions)
to generate varying length sequences.
-
getMissingDataProbability
public double getMissingDataProbability()
When positive, sets a certain percentage of values to missing (except whengetMissingDataProbabilityMin()
has a value). Valid values are between 0 and 1.When
getMissingDataProbabilityMin()
is set, the missing data probability for each case varies randomly betweengetMissingDataProbabilityMin()
andgetMissingDataProbability()
.The missing data mechanism is assumed to be MCAR (Missing Completely At Random).
-
setMissingDataProbability
public void setMissingDataProbability(double value)
When positive, sets a certain percentage of values to missing (except whengetMissingDataProbabilityMin()
has a value). Valid values are between 0 and 1.When
getMissingDataProbabilityMin()
is set, the missing data probability for each case varies randomly betweengetMissingDataProbabilityMin()
andgetMissingDataProbability()
.The missing data mechanism is assumed to be MCAR (Missing Completely At Random).
-
getMissingDataProbabilityMin
public Double getMissingDataProbabilityMin()
When set, the missing data probability for each case varies randomly betweengetMissingDataProbabilityMin()
andgetMissingDataProbability()
. Valid values are between 0 and 1.
-
setMissingDataProbabilityMin
public void setMissingDataProbabilityMin(Double value)
When set, the missing data probability for each case varies randomly betweengetMissingDataProbabilityMin()
andgetMissingDataProbability()
. Valid values are between 0 and 1.
-
getMissingDataExclusions
public ExcludedVariables getMissingDataExclusions()
Variables can be added, to indicate that they should not generate missing values.- See Also:
getMissingDataProbability()
-
-