Opened 4 years ago

Closed 4 years ago

#908 closed defect (fixed)

Fisher::p_value incorrect

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.15.1
Component: statistics Version: 0.15
Keywords: Cc:

Description

Calling Fisher::oddsratio(3, 13, 0, 3) followed by ::p_value(void) triggers an assertion:

yat/statistics/Fisher.cc:273: double
theplu::yat::statistics::Fisher::p_value_exact(unsigned int, unsigned int,
unsigned int, unsigned int) const: Assertion `k' failed.

It looks like there is a bug with the calculation of the where peak of the distribution occurs (mode).

Change History (2)

comment:1 Changed 4 years ago by Peter

Status: newassigned

comment:2 Changed 4 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [3739]) fixes #908

Note: See TracTickets for help on using tickets.