Created on 16 aug. 2011
This module contains various classes that can be used for specifying different types of uncertainties.
Code author: jhkwakkel <j.h.kwakkel (at) tudelft (dot) nl>
AbstractUncertainty provides a template for specifying different types of uncertainties.
a string denoting the type of distribution to be used in sampling
get values
the name of the uncertainty
the type of integer
the values that specify the uncertainty
ParameterUncertainty is used for specifying parametric uncertainties. An uncertainty is parametric if the range is continuous from the lower bound to the upper bound.
Parametric uncertainties are either floats or integers.
optional attribute for specifying default value for uncertainty
return default value
CategoricalUncertainty can can be used for sampling over categorical variables. The categories can be of any type, including Strings, Integers, Floats, Tuples, or any Object. As values the categories are specified in a collection.
Underneath, this is treated as a integer parametric uncertainty. That is, an integer parametric uncertainty is used with each integer corresponding to a particular category. This class called by the sampler to transform the integer back to the appropriate category.
the categories of the uncertainty
transform a category to an integer
transform an integer to a category