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: array :param testdata: data to be tested :type testdata: array :type mu: float :param mu: expected mean for the poisson distribution :type mu: float :type lowerbound: float :param lowerbound: lowerbound for truncation :type lowerbound: float :type upperbound: float :param upperbound: upperbound for truncation :type upperbound: float

Returns:

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