pyuncertainnumber.pba.imprecise =============================== .. py:module:: pyuncertainnumber.pba.imprecise Functions --------- .. autoapisummary:: pyuncertainnumber.pba.imprecise.imprecise_ecdf_sps pyuncertainnumber.pba.imprecise.imprecise_ecdf Module Contents --------------- .. py:function:: imprecise_ecdf_sps(s: pyuncertainnumber.pba.intervals.Interval) -> tuple[pyuncertainnumber.pba.ecdf.eCDF_bundle, pyuncertainnumber.pba.ecdf.eCDF_bundle] empirical cdf for interval valued data caveat: with the use of `sps.ecdf`, the probability value does not start from 0. :returns: - left and right cdfs - pbox .. py:function:: imprecise_ecdf(s: pyuncertainnumber.pba.intervals.Interval, output_type: str = 'ecdf') -> tuple[pyuncertainnumber.pba.ecdf.eCDF_bundle, pyuncertainnumber.pba.ecdf.eCDF_bundle] Empirical cdf for interval-valued data set :param s: interval valued data set :type s: Interval :param output_type: the output type, either "pbox" or "ecdf" :type output_type: str :returns: - A tuple of left and right bounding cdf .. rubric:: Example >>> rng = np.random.default_rng(seed=42) >>> precise_data = rng.normal(0, 1, 10) # precise data case >>> impre_data = pba.I(lo = precise_data -0.5, hi = precise_data + 0.5) >>> l, r = imprecise_ecdf(s=impre_data, output_type="ecdf")