commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject commons-rng git commit: Revert "Adding PoissonSampler deprecations. Use the correct faster public methods"
Date Thu, 09 Aug 2018 12:44:59 GMT
Repository: commons-rng
Updated Branches:
  refs/heads/1.1 f8159f28a -> e858b47a5


Revert "Adding PoissonSampler deprecations. Use the correct faster public methods"

This reverts commit f8159f28a52197d0e7b55e39b115702147cf57a0.


Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/e858b47a
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/e858b47a
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/e858b47a

Branch: refs/heads/1.1
Commit: e858b47a5101928ecd033e474801d1d72417283c
Parents: f8159f2
Author: Rob Tompkins <chtompki@gmail.com>
Authored: Thu Aug 9 08:44:45 2018 -0400
Committer: Rob Tompkins <chtompki@gmail.com>
Committed: Thu Aug 9 08:44:45 2018 -0400

----------------------------------------------------------------------
 .../sampling/distribution/PoissonSampler.java   | 42 --------------------
 1 file changed, 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/e858b47a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
----------------------------------------------------------------------
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
index 29d0e4e..d0733ba 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
@@ -67,48 +67,6 @@ public class PoissonSampler
         return poissonSampler.sample();
     }
 
-    /**
-     * @return a random value from a uniform distribution in the
-     * interval {@code [0, 1)}.
-     * @deprecated - one should be using the {@link PoissonSampler#sample()} method,
-     * as it is considerably faster.
-     */
-    @Deprecated
-    protected double nextDouble() {
-        return super.nextDouble();
-    }
-
-    /**
-     * @return a random {@code int} value.
-     * @deprecated - one should be using the {@link PoissonSampler#sample()} method,
-     * as it is considerably faster.
-     */
-    @Deprecated
-    protected int nextInt() {
-        return super.nextInt();
-    }
-
-    /**
-     * @param max Upper bound (excluded).
-     * @return a random {@code int} value in the interval {@code [0, max)}.
-     * @deprecated - one should be using the {@link PoissonSampler#sample()} method,
-     *      * as it is considerably faster.
-     */
-    @Deprecated
-    protected int nextInt(int max) {
-        return super.nextInt(max);
-    }
-
-    /**
-     * @return a random {@code long} value.
-     * @deprecated - one should be using the {@link PoissonSampler#sample()} method,
-     *      * as it is considerably faster.
-     */
-    @Deprecated
-    protected long nextLong() {
-        return super.nextLong();
-    }
-
     /** {@inheritDoc} */
     @Override
     public String toString() {


Mime
View raw message