statrs-dev / statrs

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

refactor: Categorical now stores normalized values for cdf and sf #301

Open FreezyLemon opened 2 months ago

FreezyLemon commented 2 months ago

(De)normalization needs to be done on every cdf- or sf-related API call at the moment. It's much simpler to handle it like the pmf vector and just do it once in new.

This breaks multinomial because it uses some of the Categorical helper functions in its implementation. This PR depends on another one resolving this, e.g. #287.