statrs-dev / statrs

Statistical computation library for Rust
https://docs.rs/statrs/latest/statrs/
MIT License
603 stars 84 forks source link

Fix fisher test #250

Closed YeungOnion closed 4 months ago

YeungOnion commented 4 months ago

167 introduced fisher exact tests

This adds some minor docs, most notably, specifying that the expected table, provided as a slice of floats (i.e. flat), is row-major.

Also fixes a "bug" for short circuiting the evaluation of the test when both values in either row are 0's. Full evaluation is exactly "1.0f64" as well, but pushing for consistency here.