Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
avhz authored Aug 4, 2024
2 parents bbb04b0 + b37b081 commit 1a69c5e
Show file tree
Hide file tree
Showing 3 changed files with 347 additions and 130 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords = ["probability", "statistics", "stats", "distribution", "math"]
categories = ["science"]
homepage = "https://github.com/statrs-dev/statrs"
repository = "https://github.com/statrs-dev/statrs"
edition = "2018"
edition = "2021"

include = ["CHANGELOG.md", "LICENSE.md", "src/", "tests/"]

Expand All @@ -19,10 +19,11 @@ path = "src/lib.rs"

[dependencies]
rand = "0.8"
nalgebra = { version = "0.32", features = ["rand"] }
nalgebra = { version = "0.32", default-features = false, features = ["rand", "std"] }
approx = "0.5.0"
num-traits = "0.2.14"

[dev-dependencies]
criterion = "0.3.3"
anyhow = "1.0"
nalgebra = { version = "0.32", default-features = false, features = ["macros"] }
1 change: 1 addition & 0 deletions src/distribution/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub fn is_valid_multinomial(arr: &[f64], incl_zero: bool) -> bool {
/// Evaluates to `None` if
/// - provided interval has lower bound greater than upper bound
/// - function found not semi-monotone on the provided interval containing `z`
///
/// Evaluates to `Some(k)`, where `k` satisfies the search criteria
pub fn integral_bisection_search<K: Num + Clone, T: Num + PartialOrd>(
f: impl Fn(&K) -> T,
Expand Down
Loading

0 comments on commit 1a69c5e

Please sign in to comment.