check_truncated_poisson#

check_truncated_poisson(testdata, mu, lowerbound=None, upperbound=None, skipcheck=False, **kwargs)[source]#

test if data fits in truncated poisson distribution between upperbound and lowerbound using kstest :type testdata: :param testdata: data to be tested :type testdata: array :type mu: :param mu: expected mean for the poisson distribution :type mu: float :type lowerbound: :param lowerbound: lowerbound for truncation :type lowerbound: float :type upperbound: :param upperbound: upperbound for truncation :type upperbound: float

Returns:

(bool) return True if statistic check passed, else return False