Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 87537200C81 for ; Thu, 20 Apr 2017 13:34:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 85FF3160B91; Thu, 20 Apr 2017 11:34:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2125D160BC5 for ; Thu, 20 Apr 2017 13:34:02 +0200 (CEST) Received: (qmail 66279 invoked by uid 500); 20 Apr 2017 11:34:02 -0000 Mailing-List: contact notifications-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list notifications@commons.apache.org Received: (qmail 65564 invoked by uid 99); 20 Apr 2017 11:34:01 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2017 11:34:01 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 53B923A5200 for ; Thu, 20 Apr 2017 11:34:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1010778 [24/39] - in /websites/production/commons/content/proper/commons-rng: ./ commons-rng-client-api/ commons-rng-client-api/apidocs/ commons-rng-client-api/apidocs/org/apache/commons/rng/ commons-rng-client-api/apidocs/org/apache/commo... Date: Thu, 20 Apr 2017 11:33:54 -0000 To: notifications@commons.apache.org From: erans@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170420113400.53B923A5200@svn01-us-west.apache.org> archived-at: Thu, 20 Apr 2017 11:34:07 -0000 Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/BoxMullerNormalizedGaussianSampler.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/BoxMullerNormalizedGaussianSampler.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/BoxMullerNormalizedGaussianSampler.html Thu Apr 20 11:33:45 2017 @@ -0,0 +1 @@ +BoxMullerNormalizedGaussianSampler

BoxMullerNormalizedGaussianSampler
ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total0 of 59100%0 of 2100%0401503
sample()40100%2100%0201101
toString()12100%n/a010101
BoxMullerNormalizedGaussianSampler(UniformRandomProvider)7100%n/a010301
\ No newline at end of file Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/BoxMullerNormalizedGaussianSampler.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/BoxMullerNormalizedGaussianSampler.java.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/BoxMullerNormalizedGaussianSampler.java.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/BoxMullerNormalizedGaussianSampler.java.html Thu Apr 20 11:33:45 2017 @@ -0,0 +1,76 @@ +BoxMullerNormalizedGaussianSampler.java

BoxMullerNormalizedGaussianSampler.java

/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.rng.sampling.distribution;
+
+import org.apache.commons.rng.UniformRandomProvider;
+
+/**
+ * <a href="https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform">
+ * Box-Muller algorithm</a> for sampling from Gaussian distribution with
+ * mean 0 and standard deviation 1.
+ *
+ * @since 1.1
+ */
+public class BoxMullerNormalizedGaussianSampler
+    extends SamplerBase
+    implements NormalizedGaussianSampler {
+    /** Next gaussian. */
+    private double nextGaussian = Double.NaN;
+
+    /**
+     * @param rng Generator of uniformly distributed random numbers.
+     */
+    public BoxMullerNormalizedGaussianSampler(UniformRandomProvider rng) {
+        super(rng);
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public double sample() {
+        final double random;
+        if (Double.isNaN(nextGaussian)) {
+            // Generate a pair of Gaussian numbers.
+
+            final double x = nextDouble();
+            final double y = nextDouble();
+            final double alpha = 2 * Math.PI * x;
+            final double r = Math.sqrt(-2 * Math.log(y));
+
+            // Return the first element of the generated pair.
+            random = r * Math.cos(alpha);
+
+            // Keep second element of the pair for next invocation.
+            nextGaussian = r * Math.sin(alpha);
+        } else {
+            // Use the second element of the pair (generated at the
+            // previous invocation).
+            random = nextGaussian;
+
+            // Both elements of the pair have been used.
+            nextGaussian = Double.NaN;
+        }
+
+        return random;
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public String toString() {
+        return "Box-Muller normalized Gaussian deviate [" + super.toString() + "]";
+    }
+}
+
\ No newline at end of file Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/BoxMullerNormalizedGaussianSampler.java.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/GaussianSampler.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/GaussianSampler.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/GaussianSampler.html Thu Apr 20 11:33:45 2017 @@ -0,0 +1 @@ +GaussianSampler

GaussianSampler

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total0 of 35100%0 of 0n/a03< /td>0703
toString()13100%n/a010101
GaussianSampler(NormalizedGaussianSampler, double, double)12100%n/a010501
sample()10100%n/a010101
\ No newline at end of file Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/GaussianSampler.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/GaussianSampler.java.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/GaussianSampler.java.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/GaussianSampler.java.html Thu Apr 20 11:33:45 2017 @@ -0,0 +1,58 @@ +GaussianSampler.java

GaussianSampler.java

/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.rng.sampling.distribution;
+
+/**
+ * Sampling from a Gaussian distribution with given mean and
+ * standard deviation.
+ *
+ * @since 1.1
+ */
+public class GaussianSampler implements ContinuousSampler {
+    /** Mean. */
+    private final double mean;
+    /** standardDeviation. */
+    private final double standardDeviation;
+    /** Normalized Gaussian sampler. */
+    private final NormalizedGaussianSampler normalized;
+
+    /**
+     * @param normalized Generator of N(0,1) Gaussian distributed random numbers.
+     * @param mean Mean of the Gaussian distribution.
+     * @param standardDeviation Standard deviation of the Gaussian distribution.
+     */
+    public GaussianSampler(NormalizedGaussianSampler normalized,
+                           double mean,
+                           double standardDeviation) {
+        this.normalized = normalized;
+        this.mean = mean;
+        this.standardDeviation = standardDeviation;
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public double sample() {
+        return standardDeviation * normalized.sample() + mean;
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public String toString() {
+        return "Gaussian deviate [" + normalized.toString() + "]";
+    }
+}
+
\ No newline at end of file Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/GaussianSampler.java.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaLogNormalSampler.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaLogNormalSampler.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaLogNormalSampler.html Thu Apr 20 11:33:45 2017 @@ -0,0 +1 @@ +MarsagliaLogNormalSampler

MarsagliaLogNormalSampler

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total0 of 40100%0 of 0n/a030703
MarsagliaLogNormalSampler(UniformRandomProvider, double, double)16100%n/a010501
toString()13100%n /a010101
sample()11100%n/a010101
\ No newline at end of file Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaLogNormalSampler.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaLogNormalSampler.java.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaLogNormalSampler.java.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaLogNormalSampler.java.html Thu Apr 20 11:33:45 2017 @@ -0,0 +1,63 @@ +MarsagliaLogNormalSampler.java

MarsagliaLogNormalSampler.java

/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.rng.sampling.distribution;
+
+import org.apache.commons.rng.UniformRandomProvider;
+
+/**
+ * <a href="https://en.wikipedia.org/wiki/Marsaglia_polar_method">
+ * polar method</a> for sampling from a Log normal distribution.
+ *
+ * @since 1.1
+ */
+public class MarsagliaLogNormalSampler
+    extends SamplerBase
+    implements ContinuousSampler {
+    /** Scale. */
+    private final double scale;
+    /** Shape. */
+    private final double shape;
+    /** Gaussian sampling. */
+    private final NormalizedGaussianSampler gaussian;
+
+    /**
+     * @param rng Generator of uniformly distributed random numbers.
+     * @param scale Scale of the Log normal distribution.
+     * @param shape Shape of the Log normal distribution.
+     */
+    public MarsagliaLogNormalSampler(UniformRandomProvider rng,
+                                     double scale,
+                                     double shape) {
+        super(null); // Not used.
+        this.scale = scale;
+        this.shape = shape;
+        gaussian = new MarsagliaNormalizedGaussianSampler(rng);
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public double sample() {
+        return Math.exp(scale + shape * gaussian.sample());
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public String toString() {
+        return "Marsaglia Log Normal [" + gaussian.toString() + "]";
+    }
+}
+
\ No newline at end of file Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaLogNormalSampler.java.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaNormalizedGaussianSampler.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaNormalizedGaussianSampler.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaNormalizedGaussianSampler.html Thu Apr 20 11:33:45 2017 @@ -0,0 +1 @@ +MarsagliaNormalizedGaussianSampler

MarsagliaNormalizedGaussianSampler
ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total1 of 7999%1 of 683%1611603
sample()15998%1583%1411201
toString()12100%n/a010101
MarsagliaNormalizedGaussianSampler(UniformRandomProvider)7100%n/a010301
Created with JaCoCo 0.7.5.201505241946 \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaNormalizedGaussianSampler.html ------------------------------------------------------------------------------ svn:eol-style = native Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaNormalizedGaussianSampler.java.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaNormalizedGaussianSampler.java.html (added) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaNormalizedGaussianSampler.java.html Thu Apr 20 11:33:45 2017 @@ -0,0 +1,86 @@ +MarsagliaNormalizedGaussianSampler.java

MarsagliaNormalizedGaussianSampler.java

/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.rng.sampling.distribution;
+
+import org.apache.commons.rng.UniformRandomProvider;
+
+/**
+ * <a href="https://en.wikipedia.org/wiki/Marsaglia_polar_method">
+ * Marsaglia polar method</a> for sampling from a Gaussian distribution
+ * with mean 0 and standard deviation 1.
+ * This is a variation of the algorithm implemented in
+ * {@link BoxMullerNormalizedGaussianSampler}.
+ *
+ * @since 1.1
+ */
+public class MarsagliaNormalizedGaussianSampler
+    extends SamplerBase
+    implements NormalizedGaussianSampler {
+    /** Next gaussian. */
+    private double nextGaussian = Double.NaN;
+
+    /**
+     * @param rng Generator of uniformly distributed random numbers.
+     */
+    public MarsagliaNormalizedGaussianSampler(UniformRandomProvider rng) {
+        super(rng);
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public double sample() {
+        if (Double.isNaN(nextGaussian)) {
+            // Rejection scheme for selecting a pair that lies within the unit circle.
+            SAMPLE: while (true) {
+                // Generate a pair of numbers within [-1 , 1).
+                final double x = 2 * nextDouble() - 1;
+                final double y = 2 * nextDouble() - 1;
+                final double r2 = x * x + y * y;
+
+                if (r2 > 1 || r2 == 0) {
+                    // Pair is not within the unit circle: Generate another one.
+                    continue SAMPLE;
+                }
+
+                // Pair (x, y) is within unit circle.
+                final double alpha = Math.sqrt(-2 * Math.log(r2) / r2);
+
+                // Keep second element of the pair for next invocation.
+                nextGaussian = alpha * y;
+
+                // Return the first element of the generated pair.
+                return alpha * x;
+            }
+        } else {
+            // Use the second element of the pair (generated at the
+            // previous invocation).
+            final double r = nextGaussian;
+
+            // Both elements of the pair have been used.
+            nextGaussian = Double.NaN;
+
+            return r;
+        }
+    }
+
+    /** {@inheritDoc} */
+    @Override
+    public String toString() {
+        return "Box-Muller (with rejection) normalized Gaussian deviate [" + super.toString() + "]";
+    }
+}
+
\ No newline at end of file Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/MarsagliaNormalizedGaussianSampler.java.html ------------------------------------------------------------------------------ svn:eol-style = native Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/PoissonSampler.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/PoissonSampler.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/PoissonSampler.html Thu Apr 20 11:33:45 2017 @@ -1 +1 @@ -PoissonSampler

PoissonSampler

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total17 of 41396%4 of 3488%422< /td>27505
PoissonSampler(UniformRandomProvider, double)144074%1375%131901
nextPoisson(double)333199%32790%31616301
toString()12100%n/a010101
sample()8100%n/a010101
factorialLog(int)5100%n/a010101
\ No newline at end of file +PoissonSampler

PoissonSampler

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total17 of 39796%4 of 3488%422< /td>26805
PoissonSampler(UniformRandomProvider, double)143873%1375%131901
nextPoisson(double)331799%32790%31615601
toString()12100%n/a010101
sample()8100%n/a010101
factorialLog(int)5100%n/a010101
\ No newline at end of file Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/PoissonSampler.java.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/PoissonSampler.java.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/PoissonSampler.java.html Thu Apr 20 11:33:45 2017 @@ -46,7 +46,7 @@ public class PoissonSampler /** Exponential. */ private final ContinuousSampler exponential; /** Gaussian. */ - private final ContinuousSampler gaussian; + private final NormalizedGaussianSampler gaussian; /** {@code log(n!)}. */ private final InternalUtils.FactorialLog factorialLog; @@ -64,7 +64,7 @@ public class PoissonSampler this.mean = mean; - gaussian = new BoxMullerGaussianSampler(rng, 0, 1); + gaussian = new MarsagliaNormalizedGaussianSampler(rng); exponential = new AhrensDieterExponentialSampler(rng, 1); factorialLog = mean < PIVOT ? null : // Not used. @@ -118,13 +118,13 @@ public class PoissonSampler final double p2 = a2 / aSum; final double c1 = 1 / (8 * lambda); - double x = 0; - double y = 0; - double v = 0; - int a = 0; - double t = 0; - double qr = 0; - double qa = 0; + double x; + double y; + double v; + int a; + double t; + double qr; + double qa; while (true) { final double u = nextDouble(); if (u <= p1) { Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/index.html ============================================================================== --- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/index.html (original) +++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/jacoco/org.apache.commons.rng.sampling.distribution/index.html Thu Apr 20 11:33:45 2017 @@ -1 +1 @@ -org.apache.commons.rng.sampling.distribution

org.apache.commons.rng.samplin g.distribution

1
ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total92 of 1,94295%15 of 12688%1612612323263016
RejectionInversionZipfSampler3219986%51372%5175350801
InternalUtils.FactorialLog237777%5964%4112160401
PoissonSampler1739696%43088%4222750501
DiscreteUniformSampler145680%1788%171140301
InternalGamma12298%2100%51101401
InternalUtils9297%n/a13131301
ChengBetaSampler319 100%24100%0180540601
AhrensDieterMarsagliaTsangGammaSampler190100%14100%0100340301
AhrensDieterExponentialSampler128100%10100%090280401
BoxMullerGaussianSampler71100%2100%040170301
BoxMullerLogNormalSampler42100%n/a03070301
ContinuousUniformSampler37100%n/a03070301
InverseTransformParetoSampler33100%n/a030< /td>60301
SamplerBase30100%n/a05070501
InverseTransformDiscreteSampler29100%n/a03050301
InverseTransformContinuousSampler29100%n/a03050301
\ No newline at end of file +org.apache.commons.rng.sampling.distribution

org.apache.commons.rng.samplin g.distribution

0
ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total93 of 2,13596%16 of 13488%1714213361275020
RejectionInversionZipfSampler3219986%51372%5175350801
InternalUtils.FactorialLog237777%5964%4112160401
PoissonSampler1738096%43088%4222680501
DiscreteUniformSampler145680%1788%171140301
InternalGamma12298%2100% 151101401
InternalUtils9297%n/a13131301
MarsagliaNormalizedGaussianSampler7899%1583%161160301
ChengBetaSampler319100%24100%0180540601
AhrensDieterMarsagliaTsangGammaSampler188100%14100%0100340301
AhrensDieterExponentialSampler128100%10100%090280401
BoxMullerGaussianSampler71100%2100%04170301
BoxMullerNormalizedGaussianSampler59100%2100%040150301
MarsagliaLogNormalSampler40100%n/a03070301
BoxMullerLogNormalSampler40100%n/a03070301
ContinuousUniformSampler37100%n/a03070301
GaussianSampler35100%n/a03070301
InverseTransformParetoSampler33100%n/a03060301
SamplerBase30100%n/a05070501
InverseTransformDiscreteSampler29100%n/a03050301
InverseTransformContinuousSampler29100%n/a03050301
\ No newline at end of file