Skip to content

Commit

Permalink
fix the bug in beta-binomial distribution. The change is subtle
Browse files Browse the repository at this point in the history
and pnj[0] was never used for further computaion.
  • Loading branch information
xiyupeng committed May 12, 2024
1 parent 9749eb2 commit 1bac3ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5.0)

project(AmpliCI VERSION 2.1)
project(AmpliCI VERSION 2.1.099)

set(CMAKE_C_COMPILER gcc)

Expand Down
2 changes: 1 addition & 1 deletion src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ void fprint_usage(FILE *fp, const char *exe_name, const char *command, void *obj
for (size_t i = start; i < strlen(exe_name); ++i)
fputc(toupper(exe_name[i]), fp);
//fprintf(fp, "(%d)\n", 1);
fprintf(fp, "(v2.1)\n");
fprintf(fp, "(v2.1.099)\n");
/* default command is to cluster */
if (!command) {
command = "";
Expand Down
2 changes: 1 addition & 1 deletion src/statistics.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ double dpoisbind(unsigned int n, unsigned int k, double *perr)
pnj[i] = perr[j - 1] * pnj[i - 1]
+ (1 - perr[j - 1]) * pnj[i];
}
pnj[0] = (1 - perr[j]) * pnj[0];
pnj[0] = (1 - perr[j-1]) * pnj[0];
// fprintf(stderr, "%e\n", pnj[k]);
}

Expand Down

0 comments on commit 1bac3ed

Please sign in to comment.