From d29f86040bb2c8909a75f4a36089a31335013277 Mon Sep 17 00:00:00 2001 From: Benjamin Lieser Date: Thu, 3 Oct 2024 16:28:19 +0200 Subject: [PATCH] Added information to ln_beta argument --- src/beta.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/beta.rs b/src/beta.rs index 8c84606c..55d0ca34 100644 --- a/src/beta.rs +++ b/src/beta.rs @@ -16,6 +16,8 @@ pub trait Beta { /// [1]: http://people.sc.fsu.edu/~jburkardt/c_src/asa109/asa109.html /// [2]: http://www.jstor.org/stable/2346797 /// [3]: http://www.jstor.org/stable/2346887 + /// + /// ln_beta should be precomputed as `p.ln_beta(q)`. fn inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self; /// Compute the inverse of the regularized incomplete beta function. @@ -27,6 +29,8 @@ pub trait Beta { /// [1]: http://people.sc.fsu.edu/~jburkardt/c_src/asa109/asa109.html /// [2]: http://www.jstor.org/stable/2346798 /// [3]: http://www.jstor.org/stable/2346887 + /// + /// ln_beta should be precomputed as `p.ln_beta(q)`. fn inv_inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self; /// Compute the natural logarithm of the beta function.