commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdigg...@apache.org
Subject cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/distribution NormalDistributionImpl.java HypergeometricDistributionImpl.java ChiSquaredDistributionImpl.java FDistributionImpl.java GammaDistributionImpl.java AbstractContinuousDistribution.java ExponentialDistributionImpl.java AbstractDiscreteDistribution.java TDistributionImpl.java BinomialDistributionImpl.java
Date Wed, 02 Jun 2004 00:15:16 GMT
mdiggory    2004/06/01 17:15:16

  Modified:    math/src/java/org/apache/commons/math/distribution
                        NormalDistributionImpl.java
                        HypergeometricDistributionImpl.java
                        ChiSquaredDistributionImpl.java
                        FDistributionImpl.java GammaDistributionImpl.java
                        AbstractContinuousDistribution.java
                        ExponentialDistributionImpl.java
                        AbstractDiscreteDistribution.java
                        TDistributionImpl.java
                        BinomialDistributionImpl.java
  Log:
  Adding serialversionUID to control versioning and allow for implementations that would like
to maintain serialization.
  
  Revision  Changes    Path
  1.11      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java
  
  Index: NormalDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/NormalDistributionImpl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- NormalDistributionImpl.java	19 May 2004 15:06:44 -0000	1.10
  +++ NormalDistributionImpl.java	2 Jun 2004 00:15:16 -0000	1.11
  @@ -30,6 +30,9 @@
   public class NormalDistributionImpl extends AbstractContinuousDistribution 
   		implements NormalDistribution, Serializable {
       
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 8589540077390120676L;
  +
       /** The mean of this distribution. */
   	private double mean = 0;
       
  
  
  
  1.14      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java
  
  Index: HypergeometricDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- HypergeometricDistributionImpl.java	19 May 2004 14:16:31 -0000	1.13
  +++ HypergeometricDistributionImpl.java	2 Jun 2004 00:15:16 -0000	1.14
  @@ -30,6 +30,9 @@
       implements HypergeometricDistribution, Serializable 
   {
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -436928820673516179L;
  +
       /** The number of successes in the population. */
       private int numberOfSuccesses;
       
  
  
  
  1.17      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java
  
  Index: ChiSquaredDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ChiSquaredDistributionImpl.java	19 May 2004 14:16:31 -0000	1.16
  +++ ChiSquaredDistributionImpl.java	2 Jun 2004 00:15:16 -0000	1.17
  @@ -28,6 +28,9 @@
       extends AbstractContinuousDistribution
       implements ChiSquaredDistribution, Serializable  {
       
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -8352658048349159782L;
  +
       /** Internal Gamma distribution. */    
       private GammaDistribution gamma;
       
  
  
  
  1.17      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/FDistributionImpl.java
  
  Index: FDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/FDistributionImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- FDistributionImpl.java	19 May 2004 14:16:31 -0000	1.16
  +++ FDistributionImpl.java	2 Jun 2004 00:15:16 -0000	1.17
  @@ -30,6 +30,9 @@
       extends AbstractContinuousDistribution
       implements FDistribution, Serializable  {
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -8516354193418641566L;
  +
       /** The numerator degrees of freedom*/
       private double numeratorDegreesOfFreedom;
   
  
  
  
  1.20      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
  
  Index: GammaDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/GammaDistributionImpl.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- GammaDistributionImpl.java	19 May 2004 14:16:31 -0000	1.19
  +++ GammaDistributionImpl.java	2 Jun 2004 00:15:16 -0000	1.20
  @@ -28,6 +28,9 @@
   public class GammaDistributionImpl extends AbstractContinuousDistribution
       implements GammaDistribution, Serializable  {
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -3239549463135430361L;
  +
       /** The shape parameter. */
       private double alpha;
       
  
  
  
  1.23      +6 -2      jakarta-commons/math/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
  
  Index: AbstractContinuousDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- AbstractContinuousDistribution.java	30 May 2004 01:24:02 -0000	1.22
  +++ AbstractContinuousDistribution.java	2 Jun 2004 00:15:16 -0000	1.23
  @@ -15,6 +15,8 @@
    */
   package org.apache.commons.math.distribution;
   
  +import java.io.Serializable;
  +
   import org.apache.commons.math.MathException;
   import org.apache.commons.math.analysis.UnivariateRealFunction;
   import org.apache.commons.math.analysis.UnivariateRealSolverUtils;
  @@ -27,8 +29,10 @@
    * @version $Revision$ $Date$
    */
   public abstract class AbstractContinuousDistribution
  -    implements ContinuousDistribution {
  +    implements ContinuousDistribution, Serializable {
   
  +    static final long serialVersionUID = -38038050983108802L;
  +    
       /**
        * Default constructor.
        */
  
  
  
  1.16      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
  
  Index: ExponentialDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ExponentialDistributionImpl.java	19 May 2004 14:16:31 -0000	1.15
  +++ ExponentialDistributionImpl.java	2 Jun 2004 00:15:16 -0000	1.16
  @@ -27,6 +27,9 @@
   public class ExponentialDistributionImpl
       implements ExponentialDistribution, Serializable  {
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 2401296428283614780L;
  +    
       /** The mean of this distribution. */
       private double mean;
       
  
  
  
  1.16      +6 -2      jakarta-commons/math/src/java/org/apache/commons/math/distribution/AbstractDiscreteDistribution.java
  
  Index: AbstractDiscreteDistribution.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/AbstractDiscreteDistribution.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- AbstractDiscreteDistribution.java	19 May 2004 14:16:31 -0000	1.15
  +++ AbstractDiscreteDistribution.java	2 Jun 2004 00:15:16 -0000	1.16
  @@ -15,6 +15,8 @@
    */
   package org.apache.commons.math.distribution;
   
  +import java.io.Serializable;
  +
   import org.apache.commons.math.MathException;
   
   
  @@ -26,8 +28,10 @@
    * @version $Revision$ $Date$
    */
   public abstract class AbstractDiscreteDistribution
  -    implements DiscreteDistribution {
  +    implements DiscreteDistribution, Serializable {
           
  +    static final long serialVersionUID = -1146319659338487221L;
  +    
       /**
        * Default constructor.
        */
  
  
  
  1.17      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/TDistributionImpl.java
  
  Index: TDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/TDistributionImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TDistributionImpl.java	19 May 2004 14:16:31 -0000	1.16
  +++ TDistributionImpl.java	2 Jun 2004 00:15:16 -0000	1.17
  @@ -30,6 +30,9 @@
       extends AbstractContinuousDistribution
       implements TDistribution, Serializable  {
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -5852615386664158222L;
  +    
       /** The degrees of freedom*/
       private double degreesOfFreedom;
   
  
  
  
  1.15      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java
  
  Index: BinomialDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- BinomialDistributionImpl.java	19 May 2004 14:16:31 -0000	1.14
  +++ BinomialDistributionImpl.java	2 Jun 2004 00:15:16 -0000	1.15
  @@ -30,6 +30,9 @@
       extends AbstractDiscreteDistribution
       implements BinomialDistribution, Serializable {
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 6751309484392813623L;
  +
       /** The number of trials. */
       private int numberOfTrials;
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message