pyuncertainnumber.pba.intervals.intervalOperators ================================================= .. py:module:: pyuncertainnumber.pba.intervals.intervalOperators Functions --------- .. autoapisummary:: pyuncertainnumber.pba.intervals.intervalOperators.parse_bounds pyuncertainnumber.pba.intervals.intervalOperators.wc_scalar_interval_feature pyuncertainnumber.pba.intervals.intervalOperators.wc_scalar_interval pyuncertainnumber.pba.intervals.intervalOperators.make_vec_interval pyuncertainnumber.pba.intervals.intervalOperators.mean pyuncertainnumber.pba.intervals.intervalOperators._arraylike pyuncertainnumber.pba.intervals.intervalOperators._intervallike Module Contents --------------- .. py:function:: parse_bounds(b) top-level function that universally parses scalar and vector bounds .. py:function:: 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`. .. py:function:: 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. .. py:function:: 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. .. rubric:: Example >>> a, b = pba.I(1, 2), pba.I(3, 4) >>> make_vec_interval([a, b]) Interval([1, 3], [2, 4]) .. py:function:: mean(x) .. py:function:: _arraylike(x) .. py:function:: _intervallike(x)