Skip to content

Commit

Permalink
Fix Yates correction according to erratum http://www.oreilly.com/cs/p…
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed May 17, 2015
1 parent c26af07 commit d4ba78a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ object RunGraph extends Serializable {
val YN = YA - YY
val NY = YB - YY
val NN = T - NY - YN - YY
val inner = (YY * NN - YN * NY) - T / 2.0
val inner = math.abs(YY * NN - YN * NY) - T / 2.0
T * math.pow(inner, 2) / (YA * NA * YB * NB)
}
}

0 comments on commit d4ba78a

Please sign in to comment.