Skip to content

Commit

Permalink
chore: run fmt before introducing fmt into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
YeungOnion committed May 25, 2024
1 parent 36b2145 commit 8091e61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/distribution/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ pub fn is_valid_multinomial(arr: &[f64], incl_zero: bool) -> bool {
/// - 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, z: T, lb: K, ub: K,
f: impl Fn(&K) -> T,
z: T,
lb: K,
ub: K,
) -> Option<K> {
if !(f(&lb)..=f(&ub)).contains(&z) {
return None;
Expand Down
1 change: 1 addition & 0 deletions src/distribution/log_normal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ impl ContinuousCDF<f64, f64> for LogNormal {
0.5 * erf::erfc((x.ln() - self.location) / (self.scale * f64::consts::SQRT_2))
}
}

/// Calculates the inverse cumulative distribution function for the
/// log-normal distribution at `p`
///
Expand Down

0 comments on commit 8091e61

Please sign in to comment.