commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tobr...@apache.org
Subject cvs commit: jakarta-commons-sandbox/math/src/java/org/apache/commons/math ListUnivariateImpl.java StoreUnivariateImpl.java Univariate.java UnivariateImpl.java
Date Mon, 26 May 2003 17:40:21 GMT
tobrien     2003/05/26 10:40:21

  Modified:    math/src/java/org/apache/commons/math
                        ListUnivariateImpl.java StoreUnivariateImpl.java
                        Univariate.java UnivariateImpl.java
  Log:
  Fixed spelling of INFINITE_WINDOW.
  
  PR: 20234
  Submitted by: Al Chou
  
  Revision  Changes    Path
  1.5       +5 -5      jakarta-commons-sandbox/math/src/java/org/apache/commons/math/ListUnivariateImpl.java
  
  Index: ListUnivariateImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/ListUnivariateImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ListUnivariateImpl.java	21 May 2003 17:59:19 -0000	1.4
  +++ ListUnivariateImpl.java	26 May 2003 17:40:20 -0000	1.5
  @@ -63,7 +63,7 @@
   
       // Holds the value of the windowSize, initial windowSize is the constant
       // Univariate.INFINITE_WINDOW
  -    private int windowSize = Univariate.INIFINTE_WINDOW;
  +    private int windowSize = Univariate.INFINITE_WINDOW;
   
       // Holds a reference to a list - GENERICs are going to make
       // out lives easier here as we could only accept List<Number>
  @@ -81,11 +81,11 @@
           // If we've got a windowSize, we might not care about the entire list.
           List effectiveList = list;
   
  -        // If the window size is not INIFINITE_WINDOW AND
  +        // If the window size is not INFINITE_WINDOW AND
           // the current list is larger that the window size, we need to
           // take into account only the last n elements of the list
           // as definied by windowSize
  -        if (windowSize != Univariate.INIFINTE_WINDOW &&
  +        if (windowSize != Univariate.INFINITE_WINDOW &&
               windowSize < list.size()) {
               effectiveList = list.subList((list.size() - 1) - windowSize, 
                                             (list.size()-1));
  @@ -111,7 +111,7 @@
       public double getElement(int index) {
   
           double value = Double.NaN;
  -        if (windowSize != Univariate.INIFINTE_WINDOW &&
  +        if (windowSize != Univariate.INFINITE_WINDOW &&
               windowSize < list.size()) {
   
               int calcIndex = (list.size() - windowSize) + index;
  @@ -132,7 +132,7 @@
       public int getN() {
           int N = 0;
   
  -        if (windowSize != Univariate.INIFINTE_WINDOW) {
  +        if (windowSize != Univariate.INFINITE_WINDOW) {
               if (list.size() > windowSize) {
                   N = windowSize;
               } else {
  
  
  
  1.7       +2 -2      jakarta-commons-sandbox/math/src/java/org/apache/commons/math/StoreUnivariateImpl.java
  
  Index: StoreUnivariateImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/StoreUnivariateImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StoreUnivariateImpl.java	21 May 2003 17:59:19 -0000	1.6
  +++ StoreUnivariateImpl.java	26 May 2003 17:40:20 -0000	1.7
  @@ -62,7 +62,7 @@
       DoubleArray eDA;
   
       // Store the windowSize
  -    private int windowSize = Univariate.INIFINTE_WINDOW;
  +    private int windowSize = Univariate.INFINITE_WINDOW;
   
       public StoreUnivariateImpl() {
           // A contractable double array is used.  memory is reclaimed when
  @@ -99,7 +99,7 @@
        * @see org.apache.commons.math.Univariate#addValue(double)
        */
       public synchronized void addValue(double v) {
  -        if( windowSize != Univariate.INIFINTE_WINDOW ) {
  +        if( windowSize != Univariate.INFINITE_WINDOW ) {
               if( getN() == windowSize ) {
                   eDA.addElementRolling( v );
               } else if( getN() < windowSize ) {
  
  
  
  1.7       +2 -2      jakarta-commons-sandbox/math/src/java/org/apache/commons/math/Univariate.java
  
  Index: Univariate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/Univariate.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Univariate.java	23 May 2003 17:33:18 -0000	1.6
  +++ Univariate.java	26 May 2003 17:40:20 -0000	1.7
  @@ -179,7 +179,7 @@
        * elements.  In other words, if getWindow returns this
        * constant, there is, in effect, no "window".
        */
  -    static final int INIFINTE_WINDOW = -1;
  +    static final int INFINITE_WINDOW = -1;
   
       /**
        * Univariate has the ability to return only measures for the
  
  
  
  1.8       +3 -3      jakarta-commons-sandbox/math/src/java/org/apache/commons/math/UnivariateImpl.java
  
  Index: UnivariateImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/math/src/java/org/apache/commons/math/UnivariateImpl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- UnivariateImpl.java	23 May 2003 17:33:18 -0000	1.7
  +++ UnivariateImpl.java	26 May 2003 17:40:20 -0000	1.8
  @@ -73,7 +73,7 @@
   public class UnivariateImpl implements Univariate, Serializable {
   
       /** hold the window size **/
  -    private int windowSize = Univariate.INIFINTE_WINDOW;
  +    private int windowSize = Univariate.INFINITE_WINDOW;
   
       /** Just in case, the windowSize is not inifinite, we need to
        *   keep an array to remember values 0 to N
  @@ -175,7 +175,7 @@
               product = 1.0;
           }
   
  -        if( windowSize != Univariate.INIFINTE_WINDOW ) {
  +        if( windowSize != Univariate.INFINITE_WINDOW ) {
   
               if( windowSize == n ) {
                   double discarded = doubleArray.addElementRolling( v );
  
  
  

---------------------------------------------------------------------
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