Available sampling constraints
The following sampling constraints are available. These constraints may be used in any resampling setting.
Standard deviation
UncertainData.SamplingConstraints.TruncateStd
— TypeTruncateStd(nσ::Number)
A constraint indicating that the distribution furnishing an uncertain value should be truncated at the mean ± nσ
(n
standard deviations).
Notes
- Beware when you apply the
TruncateStd
constraint to a (usually a numeric) population with a small value range. Withnσ
small, you might end up with a population mean between the actual values, so that the range[mean(pop) - nσ*std(pop), mean(pop) + nσ*std(pop)]
returnsnothing
.
Minimum value
UncertainData.SamplingConstraints.TruncateMinimum
— TypeTruncateMinimum(min::Number)
A constraint indicating that the distribution furnishing an uncertain value should be truncated below at some specified minimum value.
Maximum value
UncertainData.SamplingConstraints.TruncateMaximum
— TypeTruncateMaximum(max::Number)
A constraint indicating that the distribution furnishing an uncertain value should be truncated above at some specified maximum value.
Value range
UncertainData.SamplingConstraints.TruncateRange
— TypeTruncateRange(min::Number, max::Number)
A constraint indicating that the distribution furnishing an uncertain value should be truncated at some range [min, max]
.
Lower quantile
UncertainData.SamplingConstraints.TruncateLowerQuantile
— TypeTruncateLowerQuantile(lower_quantile::Float64)
A constraint indicating that the distribution furnishing an uncertain value should be truncated below at some quantile.
Upper quantile
UncertainData.SamplingConstraints.TruncateUpperQuantile
— TypeTruncateUpperQuantile(upper_quantile::Float64)
A constraint indicating that the distribution furnishing an uncertain value should be truncated above at some quantile.
Quantile range
UncertainData.SamplingConstraints.TruncateQuantiles
— TypeTruncateQuantiles(lower_quantile::Float64, upper_quantile::Float64)
A constraint indicating that the distribution furnishing an uncertain value should be truncated at some quantile quantile (lower_quantile, upper_quantile)
.