commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brentwor...@apache.org
Subject cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate DescriptiveStatistics.java SummaryStatistics.java DescriptiveStatisticsImpl.java
Date Fri, 23 Apr 2004 19:50:27 GMT
brentworden    2004/04/23 12:50:27

  Modified:    math/src/java/org/apache/commons/math/util
                        TransformerMap.java
               math/src/java/org/apache/commons/math/stat/univariate
                        DescriptiveStatistics.java SummaryStatistics.java
                        DescriptiveStatisticsImpl.java
  Log:
  Added exceptions to javadoc comments.
  
  Revision  Changes    Path
  1.12      +2 -3      jakarta-commons/math/src/java/org/apache/commons/math/util/TransformerMap.java
  
  Index: TransformerMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/util/TransformerMap.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TransformerMap.java	21 Feb 2004 21:35:16 -0000	1.11
  +++ TransformerMap.java	23 Apr 2004 19:50:27 -0000	1.12
  @@ -136,8 +136,7 @@
   		if (o instanceof Number || o instanceof String) {
   			value = defaultTransformer.transform(o);
   		} else {
  -			NumberTransformer trans =
  -				(NumberTransformer) this.getTransformer(o.getClass());
  +			NumberTransformer trans = getTransformer(o.getClass());
   			if (trans != null) {
   				value = trans.transform(o);
   			}
  
  
  
  1.2       +17 -2     jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/DescriptiveStatistics.java
  
  Index: DescriptiveStatistics.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/DescriptiveStatistics.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DescriptiveStatistics.java	12 Apr 2004 02:27:49 -0000	1.1
  +++ DescriptiveStatistics.java	23 Apr 2004 19:50:27 -0000	1.2
  @@ -29,20 +29,35 @@
   
   	/**
   	 * Create an instance of a <code>DescriptiveStatistics</code>
  +     * @param cls the type of <code>DescriptiveStatistics</code> object to
  +     *        create. 
   	 * @return a new factory. 
  +     * @exception InstantiationException is thrown if the object can not be
  +     *            created.
  +     * @exception IllegalAccessException is thrown if the type's default
  +     *            constructor is not accessible.
  +     * @exception ClassNotFoundException if the named
  +     *            <code>DescriptiveStatistics</code> type can not be found.
   	 */
   	public static DescriptiveStatistics newInstance(String cls) throws InstantiationException,
IllegalAccessException, ClassNotFoundException {
   		return newInstance(Class.forName(cls));
   	}
  +    
   	/**
   	 * Create an instance of a <code>DescriptiveStatistics</code>
  +     * @param cls the type of <code>DescriptiveStatistics</code> object to
  +     *        create. 
   	 * @return a new factory. 
  +     * @exception InstantiationException is thrown if the object can not be
  +     *            created.
  +     * @exception IllegalAccessException is thrown if the type's default
  +     *            constructor is not accessible.
   	 */
   	public static DescriptiveStatistics newInstance(Class cls) throws InstantiationException,
IllegalAccessException {
   		return (DescriptiveStatistics)cls.newInstance();
   	}
   	
  -		/**
  +	/**
   	 * Create an instance of a <code>DescriptiveStatistics</code>
   	 * @return a new factory. 
   	 */
  
  
  
  1.2       +19 -4     jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/SummaryStatistics.java
  
  Index: SummaryStatistics.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/SummaryStatistics.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SummaryStatistics.java	12 Apr 2004 02:27:49 -0000	1.1
  +++ SummaryStatistics.java	23 Apr 2004 19:50:27 -0000	1.2
  @@ -28,20 +28,35 @@
   
   	/**
   	 * Create an instance of a <code>SummaryStatistics</code>
  -	 * @return a new factory. 
  +     * @param cls the type of <code>SummaryStatistics</code> object to
  +     *        create. 
  +     * @return a new factory. 
  +     * @exception InstantiationException is thrown if the object can not be
  +     *            created.
  +     * @exception IllegalAccessException is thrown if the type's default
  +     *            constructor is not accessible.
  +     * @exception ClassNotFoundException if the named
  +     *            <code>SummaryStatistics</code> type can not be found.
   	 */
   	public static SummaryStatistics newInstance(String cls) throws InstantiationException,
IllegalAccessException, ClassNotFoundException {
   		return newInstance(Class.forName(cls));
   	}
  +     
   	/**
   	 * Create an instance of a <code>DescriptiveStatistics</code>
  -	 * @return a new factory. 
  +     * @param cls the type of <code>SummaryStatistics</code> object to
  +     *        create. 
  +     * @return a new factory. 
  +     * @exception InstantiationException is thrown if the object can not be
  +     *            created.
  +     * @exception IllegalAccessException is thrown if the type's default
  +     *            constructor is not accessible.
   	 */
   	public static SummaryStatistics newInstance(Class cls) throws InstantiationException,
IllegalAccessException {
   		return (SummaryStatistics)cls.newInstance();
   	}
   	
  -		/**
  +	/**
   	 * Create an instance of a <code>DescriptiveStatistics</code>
   	 * @return a new factory. 
   	 */
  
  
  
  1.2       +6 -1      jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/DescriptiveStatisticsImpl.java
  
  Index: DescriptiveStatisticsImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/stat/univariate/DescriptiveStatisticsImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DescriptiveStatisticsImpl.java	12 Apr 2004 02:27:49 -0000	1.1
  +++ DescriptiveStatisticsImpl.java	23 Apr 2004 19:50:27 -0000	1.2
  @@ -44,12 +44,17 @@
       
       /**
        * Construct a DescriptiveStatisticsImpl with finite window
  +     * @param window the finite window size.
        */
       public DescriptiveStatisticsImpl(int window) {
       	super(window);
       	eDA = new ContractableDoubleArray();
       }
   
  +    /**
  +     * Access the window size.
  +     * @return the current window size.
  +     */
       public int getWindowSize() {
       	return windowSize;
       }
  
  
  

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