simulation.range¶
Module handling ranges.
Range
¶
Bases: BaseObject
Range class.
The Range class is the base class for the different types of ranges, i.e. UniformRange, VectorRange, FunctionalRange, and DataRange.
Construct Range.
VectorRange
¶
UniformRangeType
¶
Bases: Enum
UniformRangeType.
Attribute type that can take the values linear or log. Determines whether to draw the values logarithmically (with a base of 10) or linearly.
UniformRange
¶
Bases: Range
UniformRange class.
The UniformRange on the preceding page) allows the definition of a Range with uniformly spaced values. The range_type determines whether to draw the values logarithmically (with a base of 10) or linearly.
Construct VectorRange.
DataRange
¶
FunctionalRange
¶
Bases: Calculation, Range
FunctionalRange class.
The FunctionalRange constructs a range through calculations that determine the next value based on the value(s) of other range(s) or model variables. In this it is similar to the ComputeChange element, and shares some of the same child elements (but is not a subclass of ComputeChange).
Construct FunctionalRange.
Dimension
¶
Define dimension for a scan.
The dimension defines how the dimension is called, the index is the corresponding index of the dimension.
Dimension.
If no index is provided the index is calculated from the changes. So in most cases the index can be left empty (e.g., for scanning of parameters).
:param dimension: unique id of dimension, should start with 'dim' :param index: index for values in dimension :param changes: changes to apply.
indices_from_dimensions
staticmethod
¶
Get indices of all combinations of dimensions.