From b5bdeda5290bdd374e81d5a7e22e71f107dd25ef Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Wed, 19 Jul 2023 18:34:10 +0200 Subject: [PATCH] Add files via upload --- functions/fisher_exact.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/fisher_exact.py b/functions/fisher_exact.py index fa9b85b..6437458 100644 --- a/functions/fisher_exact.py +++ b/functions/fisher_exact.py @@ -3,10 +3,10 @@ from scipy.stats import fisher_exact def fisher_excat_upper( correct_pattern_count: int, number_of_pattern: int, p_threshold: float = 5.0 / 100.0 -) -> float | None: +) -> float: error_pattern_count = int(number_of_pattern - correct_pattern_count) - bound = None + bound = 100.0 for u in range(0, correct_pattern_count): z = int(error_pattern_count + u) _, pvalue = fisher_exact( @@ -22,10 +22,10 @@ def fisher_excat_upper( def fisher_excat_lower( correct_pattern_count: int, number_of_pattern: int, p_threshold: float = 5.0 / 100.0 -) -> float | None: +) -> float: error_pattern_count = int(number_of_pattern - correct_pattern_count) - bound = None + bound = 0.0 for u in range(0, error_pattern_count): z = int(error_pattern_count - u) _, pvalue = fisher_exact(