Skip to content

Commit

Permalink
Use standard letters for arguments of bernoulli_pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Jan 27, 2025
1 parent 9353c38 commit e44141e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/randist/bernoulli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

/// This function computes the probability p(k) of obtaining k from a Bernoulli distribution with probability parameter p, using the formula given above.
#[doc(alias = "gsl_ran_bernoulli_pdf")]
pub fn bernoulli_pdf(x: u32, p: f64) -> f64 {
unsafe { sys::gsl_ran_bernoulli_pdf(x, p) }
pub fn bernoulli_pdf(k: u32, p: f64) -> f64 {
unsafe { sys::gsl_ran_bernoulli_pdf(k, p) }
}

0 comments on commit e44141e

Please sign in to comment.