Skip to content

Regular constraints

Available sampling constraints

The following sampling constraints are available. These constraints may be used in any resampling setting.

Standard deviation

# UncertainData.SamplingConstraints.TruncateStdType.

1
TruncateStd(::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. With nσ 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)] returns nothing.

source

Minimum value

# UncertainData.SamplingConstraints.TruncateMinimumType.

1
TruncateMinimum(min::Number)

A constraint indicating that the distribution furnishing an uncertain value should be truncated below at some specified minimum value.

source

Maximum value

# UncertainData.SamplingConstraints.TruncateMaximumType.

1
TruncateMaximum(max::Number)

A constraint indicating that the distribution furnishing an uncertain value should be truncated above at some specified maximum value.

source

Value range

# UncertainData.SamplingConstraints.TruncateRangeType.

1
TruncateRange(min::Number, max::Number)

A constraint indicating that the distribution furnishing an uncertain value should be truncated at some range [min, max].

source

Lower quantile

# UncertainData.SamplingConstraints.TruncateLowerQuantileType.

1
TruncateLowerQuantile(lower_quantile::Float64)

A constraint indicating that the distribution furnishing an uncertain value should be truncated below at some quantile.

source

Upper quantile

# UncertainData.SamplingConstraints.TruncateUpperQuantileType.

1
TruncateUpperQuantile(upper_quantile::Float64)

A constraint indicating that the distribution furnishing an uncertain value should be truncated above at some quantile.

source

Quantile range

# UncertainData.SamplingConstraints.TruncateQuantilesType.

1
TruncateQuantiles(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).

source