-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Bernoulli and Binomial (#1557)
* Improve Bernoulli - replace `1:length(x)` with `eachindex(x)` so that it works with more arrays, for instance `OffsetArrays` - initialize the counters `c0` and `c1` with `zero(eltype(w))` so that they are type-stable (previously they were `Int32/Float64`) - fix the creation of domain error: the void method `DomainError()` does not exist - make `BernoulliStats` generic so that it can collect counters of more general type, for instance `ForwardDiff.Dual` Update src/univariate/discrete/bernoulli.jl Co-authored-by: David Widmann <devmotion@users.noreply.github.com> Improve Binomial (porting the changes from Bernoulli) * Additional fixes * Add tests * Bump version Co-authored-by: David Widmann <david.widmann@it.uu.se>
- Loading branch information
1 parent
02a8838
commit a350622
Showing
4 changed files
with
99 additions
and
99 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
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
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
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
a350622
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
a350622
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/61155
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: