Skip to content

Commit

Permalink
Fix bug in attribute Chi2 Test if one attribute has only one category C…
Browse files Browse the repository at this point in the history
  • Loading branch information
keckelt committed Mar 7, 2019
1 parent ed41ae3 commit d5d58dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Measures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class ChiSquareIndependenceTest extends ChiSquareTest {
let score = 0;
let pValue = -1;

if (rows <= 1 && columns <= 1) {
if (rows <= 1 || columns <= 1) {
return measureResultObj(score, pValue);
}

Expand Down

0 comments on commit d5d58dd

Please sign in to comment.