You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/12/03 23:06:47 UTC
[commons-numbers] branch master updated: Add since tags for new API additions
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
The following commit(s) were added to refs/heads/master by this push:
new 7424cb5 Add since tags for new API additions
7424cb5 is described below
commit 7424cb5333fdacecec66943b80a8e49ee4b0cae7
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Dec 3 23:06:42 2021 +0000
Add since tags for new API additions
---
.../main/java/org/apache/commons/numbers/gamma/IncompleteGamma.java | 3 +++
.../src/main/java/org/apache/commons/numbers/gamma/LogGamma.java | 1 +
.../main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java | 2 ++
3 files changed, 6 insertions(+)
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/IncompleteGamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/IncompleteGamma.java
index e1f2fb7..cac2a25 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/IncompleteGamma.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/IncompleteGamma.java
@@ -32,6 +32,7 @@ import org.apache.commons.numbers.gamma.BoostGamma.Policy;
* @see
* <a href="https://www.boost.org/doc/libs/1_77_0/libs/math/doc/html/math_toolkit/sf_gamma/igamma.html">
* Boost C++ Incomplete Gamma functions</a>
+ * @since 1.1
*/
public final class IncompleteGamma {
/** No instances. */
@@ -42,6 +43,7 @@ public final class IncompleteGamma {
* Lower incomplete Gamma function</a> \( \gamma(a, x) \).
*
* <p>\[ \gamma(a,x) = \int_0^x t^{a-1}\,e^{-t}\,dt \]
+ * @since 1.1
*/
public static final class Lower {
/** No instances. */
@@ -83,6 +85,7 @@ public final class IncompleteGamma {
* Upper incomplete Gamma function</a> \( \Gamma(a, x) \).
*
* <p>\[ \Gamma(a,x) = \int_x^{\infty} t^{a-1}\,e^{-t}\,dt \]
+ * @since 1.1
*/
public static final class Upper {
/** No instances. */
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java
index 76c020f..2fd408a 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java
@@ -58,6 +58,7 @@ public final class LogGamma {
* set on output to the sign of gamma(z).
* @return \( \ln \lvert \Gamma(x) \rvert \), or {@code NaN} if {@code x <= 0}
* and is an integer.
+ * @since 1.1
*/
public static double value(double x, int[] sign) {
return BoostGamma.lgamma(x, sign);
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java
index 956798f..43cc8ae 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java
@@ -89,6 +89,7 @@ public final class RegularizedGamma {
* @param a Argument.
* @param x Argument.
* @return derivative of \( P(a,x) \) with respect to x.
+ * @since 1.1
*/
public static double derivative(double a,
double x) {
@@ -146,6 +147,7 @@ public final class RegularizedGamma {
* @param a Argument.
* @param x Argument.
* @return derivative of \( Q(a,x) \) with respect to x.
+ * @since 1.1
*/
public static double derivative(double a,
double x) {