pyuncertainnumber.pba.intervals.intervalOperators¶
Functions¶
|
top-level function that universally parses scalar and vector bounds |
|
wildcard scalar interval |
|
wildcard scalar interval |
|
parse an array-like structure into a vector interval |
|
|
|
|
Module Contents¶
- pyuncertainnumber.pba.intervals.intervalOperators.parse_bounds(b)¶
top-level function that universally parses scalar and vector bounds
- pyuncertainnumber.pba.intervals.intervalOperators.wc_scalar_interval_feature(*args)¶
wildcard scalar interval
This function is used to parse a scalar bound into an Interval object. It can handle various input types such as lists, tuples, and strings. If the input is a string, it attempts to interpret it using the hedge_interpret function or parse it as an interval expression. If the input is a single number, it creates an Interval with that number as both bounds.
Note
This function is a beta version of wc_scalar_interval which is meant to test the API signature. If run into error, then resort back to wc_scalar_interval.
- pyuncertainnumber.pba.intervals.intervalOperators.wc_scalar_interval(bound)¶
wildcard scalar interval
This function is used to parse a scalar bound into an Interval object. It can handle various input types such as lists, tuples, and strings. If the input is a string, it attempts to interpret it using the hedge_interpret function or parse it as an interval expression. If the input is a single number, it creates an Interval with that number as both bounds.
- pyuncertainnumber.pba.intervals.intervalOperators.make_vec_interval(vec)¶
parse an array-like structure into a vector interval
For most part, it works same to intervalise, except that this function can also handle a list of UN objects.
Example
>>> a, b = pba.I(1, 2), pba.I(3, 4) >>> make_vec_interval([a, b]) Interval([1, 3], [2, 4])
- pyuncertainnumber.pba.intervals.intervalOperators.mean(x)¶
- pyuncertainnumber.pba.intervals.intervalOperators._arraylike(x)¶
- pyuncertainnumber.pba.intervals.intervalOperators._intervallike(x)¶