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-statistics.git


The following commit(s) were added to refs/heads/master by this push:
     new 636d34e  Move constant to local inner class
636d34e is described below

commit 636d34ea3a5dcf4183a9d7aa6d2b87bbebbe1464
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Wed Aug 14 12:25:55 2024 +0100

    Move constant to local inner class
---
 .../org/apache/commons/statistics/distribution/TDistribution.java  | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/TDistribution.java
 
b/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/TDistribution.java
index 93255e6..d378a3f 100644
--- 
a/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/TDistribution.java
+++ 
b/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/TDistribution.java
@@ -37,10 +37,6 @@ import org.apache.commons.rng.sampling.distribution.TSampler;
  * @see <a 
href="https://mathworld.wolfram.com/Studentst-Distribution.html";>Student&#39;s 
t-distribution (MathWorld)</a>
  */
 public abstract class TDistribution extends AbstractContinuousDistribution {
-    /** A standard normal distribution used for calculations.
-     * This is immutable and thread-safe and can be used across instances. */
-    static final NormalDistribution STANDARD_NORMAL = NormalDistribution.of(0, 
1);
-
     /** The degrees of freedom. */
     private final double degreesOfFreedom;
 
@@ -53,6 +49,9 @@ public abstract class TDistribution extends 
AbstractContinuousDistribution {
      * allowed to provide access to the degrees of freedom used during 
construction.
      */
     private static class NormalTDistribution extends TDistribution {
+        /** A standard normal distribution used for calculations.
+         * This is immutable and thread-safe and can be used across instances. 
*/
+        private static final NormalDistribution STANDARD_NORMAL = 
NormalDistribution.of(0, 1);
 
         /**
          * @param degreesOfFreedom Degrees of freedom.

Reply via email to