Skip to content

Conversation

@FreezyLemon
Copy link
Contributor

(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.

FreezyLemon and others added 2 commits September 24, 2024 00:06
norm_pmf (probabilities) was already normalized before
storing, but cdf and sf weren't. Instead, they were normalized
on every API call.

The refactor also reduces the amount of vec/slice iterations in `new`
from 4 to 2.
@YeungOnion YeungOnion added this to the 0.18 milestone Sep 25, 2024
@YeungOnion YeungOnion modified the milestones: 0.18, 0.19 Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants