_result

class coinflip.randtests._result.TestResult(statistic: Union[int, float], p: float)[source]

Base container for test result data and subsequent representation methods

Variables:
  • statistic (int or float) – Statistic of the test
  • p (float) – p-value of the test
coinflip.randtests._result.smartround(num: Union[int, float], ndigits=1) → Union[int, float][source]

Round number only if it’s a float