You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2019/11/22 16:29:16 UTC

[commons-statistics] branch master updated (f685029 -> a080bae)

This is an automated email from the ASF dual-hosted git repository.

erans pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git.


    from f685029  ChiSquaredDistribution: Use the gamma distribution to create a sampler.
     new 96e8b8d  Exclusions from RAT check.
     new a080bae  Outside domain, use values consistent with other distributions (see "GammaDistribution").

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../statistics/distribution/LevyDistribution.java  |  6 ++---
 pom.xml                                            | 30 ++++++++++++++--------
 2 files changed, 22 insertions(+), 14 deletions(-)


[commons-statistics] 02/02: Outside domain, use values consistent with other distributions (see "GammaDistribution").

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git

commit a080bae780308db1cf3c878c703213b65134b485
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
AuthorDate: Fri Nov 22 17:26:33 2019 +0100

    Outside domain, use values consistent with other distributions (see "GammaDistribution").
    
    Reported as MATH-1503.
---
 .../apache/commons/statistics/distribution/LevyDistribution.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/LevyDistribution.java b/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/LevyDistribution.java
index aab5dc3..289f35e 100644
--- a/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/LevyDistribution.java
+++ b/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/LevyDistribution.java
@@ -61,7 +61,7 @@ public class LevyDistribution extends AbstractContinuousDistribution {
     @Override
     public double density(final double x) {
         if (x < mu) {
-            return Double.NaN;
+            return 0;
         }
 
         final double delta = x - mu;
@@ -76,7 +76,7 @@ public class LevyDistribution extends AbstractContinuousDistribution {
     @Override
     public double logDensity(double x) {
         if (x < mu) {
-            return Double.NaN;
+            return Double.NEGATIVE_INFINITY;
         }
 
         final double delta = x - mu;
@@ -95,7 +95,7 @@ public class LevyDistribution extends AbstractContinuousDistribution {
     @Override
     public double cumulativeProbability(final double x) {
         if (x < mu) {
-            return Double.NaN;
+            return 0;
         }
         return Erfc.value(Math.sqrt(halfC / (x - mu)));
     }


[commons-statistics] 01/02: Exclusions from RAT check.

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git

commit 96e8b8d3989443c2535b87b9304045a8d88b36b4
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
AuthorDate: Fri Nov 22 17:25:48 2019 +0100

    Exclusions from RAT check.
---
 pom.xml | 30 +++++++++++++++++++-----------
 1 file changed, 19 insertions(+), 11 deletions(-)

diff --git a/pom.xml b/pom.xml
index cae2229..07bdf44 100644
--- a/pom.xml
+++ b/pom.xml
@@ -307,17 +307,19 @@
         <groupId>org.apache.rat</groupId>
         <artifactId>apache-rat-plugin</artifactId>
         <configuration>
-        <!--
-          Needed for command-line access, e.g mvn apache-rat:rat and mvn apache-rat:check
-          Below should agree with config in <reporting> section, so the site
-          gets consistent output.
-        -->
+          <!--  Should agree with apache-rat-plugin config under <build> -->
           <excludes combine.children="append">
             <!-- version 0.8 of apache-rat-plugin does not exclude properly
                  some default development tools files (see RAT-126) -->
             <exclude>.ekstazi/**</exclude>
-            <exclude>src/site/resources/txt/userguide/stress/dh/**</exclude>
-            <exclude>src/site/resources/txt/userguide/stress/tu/**</exclude>
+            <exclude>**/site-content/**</exclude>
+            <exclude>**/.classpath</exclude>
+            <exclude>**/.project</exclude>
+            <exclude>**/.settings/**</exclude>
+            <exclude>**/.checkstyle</exclude>
+            <exclude>**/target/**</exclude>
+            <exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude>
+            <exclude>src/site/resources/txt/userguide/stress/**</exclude>
             <exclude>dist-archive/**</exclude>
           </excludes>
         </configuration>
@@ -339,19 +341,25 @@
       <plugin>
         <groupId>org.apache.rat</groupId>
         <artifactId>apache-rat-plugin</artifactId>
-        <version>${commons.rat.version}</version>
         <configuration>
-         <!--  Should agree with apache-rat-plugin config under <build> -->
+          <!--  Should agree with apache-rat-plugin config under <build> -->
           <excludes combine.children="append">
             <!-- version 0.8 of apache-rat-plugin does not exclude properly
                  some default development tools files (see RAT-126) -->
             <exclude>.ekstazi/**</exclude>
-            <exclude>src/site/resources/txt/userguide/stress/dh/**</exclude>
-            <exclude>src/site/resources/txt/userguide/stress/tu/**</exclude>
+            <exclude>**/site-content/**</exclude>
+            <exclude>**/.classpath</exclude>
+            <exclude>**/.project</exclude>
+            <exclude>**/.settings/**</exclude>
+            <exclude>**/.checkstyle</exclude>
+            <exclude>**/target/**</exclude>
+            <exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude>
+            <exclude>src/site/resources/txt/userguide/stress/**</exclude>
             <exclude>dist-archive/**</exclude>
           </excludes>
         </configuration>
       </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-changes-plugin</artifactId>