-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Categorical now stores normalized values
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.
- Loading branch information
1 parent
1cbcc49
commit 37f8fdf
Showing
1 changed file
with
48 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters