Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 96475 invoked from network); 3 Feb 2008 21:39:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2008 21:39:33 -0000 Received: (qmail 16550 invoked by uid 500); 3 Feb 2008 21:39:23 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 16496 invoked by uid 500); 3 Feb 2008 21:39:23 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 16487 invoked by uid 99); 3 Feb 2008 21:39:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2008 13:39:23 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2008 21:39:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9094F1A9832; Sun, 3 Feb 2008 13:39:09 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r618097 - in /commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive: SummaryStatistics.java SynchronizedSummaryStatistics.java Date: Sun, 03 Feb 2008 21:39:09 -0000 To: commits@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080203213909.9094F1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: luc Date: Sun Feb 3 13:39:08 2008 New Revision: 618097 URL: http://svn.apache.org/viewvc?rev=618097&view=rev Log: moved synchronized setters/getters from SummaryStatistics to SynchronizedSummaryStatistics JIRA: MATH-183 Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java?rev=618097&r1=618096&r2=618097&view=diff ============================================================================== --- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java (original) +++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java Sun Feb 3 13:39:08 2008 @@ -385,7 +385,7 @@ * * @return the StorelessUnivariateStatistic implementing the sum */ - public synchronized StorelessUnivariateStatistic getSumImpl() { + public StorelessUnivariateStatistic getSumImpl() { return sumImpl; } @@ -400,7 +400,7 @@ * @throws IllegalStateException if data has already been added * (i.e if n > 0) */ - public synchronized void setSumImpl(StorelessUnivariateStatistic sumImpl) { + public void setSumImpl(StorelessUnivariateStatistic sumImpl) { checkEmpty(); this.sumImpl = sumImpl; } @@ -410,7 +410,7 @@ * * @return the StorelessUnivariateStatistic implementing the sum of squares */ - public synchronized StorelessUnivariateStatistic getSumsqImpl() { + public StorelessUnivariateStatistic getSumsqImpl() { return sumsqImpl; } @@ -425,7 +425,7 @@ * @throws IllegalStateException if data has already been added * (i.e if n > 0) */ - public synchronized void setSumsqImpl( + public void setSumsqImpl( StorelessUnivariateStatistic sumsqImpl) { checkEmpty(); this.sumsqImpl = sumsqImpl; @@ -436,7 +436,7 @@ * * @return the StorelessUnivariateStatistic implementing the minimum */ - public synchronized StorelessUnivariateStatistic getMinImpl() { + public StorelessUnivariateStatistic getMinImpl() { return minImpl; } @@ -451,7 +451,7 @@ * @throws IllegalStateException if data has already been added * (i.e if n > 0) */ - public synchronized void setMinImpl(StorelessUnivariateStatistic minImpl) { + public void setMinImpl(StorelessUnivariateStatistic minImpl) { checkEmpty(); this.minImpl = minImpl; } @@ -461,7 +461,7 @@ * * @return the StorelessUnivariateStatistic implementing the maximum */ - public synchronized StorelessUnivariateStatistic getMaxImpl() { + public StorelessUnivariateStatistic getMaxImpl() { return maxImpl; } @@ -476,7 +476,7 @@ * @throws IllegalStateException if data has already been added * (i.e if n > 0) */ - public synchronized void setMaxImpl(StorelessUnivariateStatistic maxImpl) { + public void setMaxImpl(StorelessUnivariateStatistic maxImpl) { checkEmpty(); this.maxImpl = maxImpl; } @@ -486,7 +486,7 @@ * * @return the StorelessUnivariateStatistic implementing the log sum */ - public synchronized StorelessUnivariateStatistic getSumLogImpl() { + public StorelessUnivariateStatistic getSumLogImpl() { return sumLogImpl; } @@ -501,7 +501,7 @@ * @throws IllegalStateException if data has already been added * (i.e if n > 0) */ - public synchronized void setSumLogImpl( + public void setSumLogImpl( StorelessUnivariateStatistic sumLogImpl) { checkEmpty(); this.sumLogImpl = sumLogImpl; @@ -512,7 +512,7 @@ * * @return the StorelessUnivariateStatistic implementing the geometric mean */ - public synchronized StorelessUnivariateStatistic getGeoMeanImpl() { + public StorelessUnivariateStatistic getGeoMeanImpl() { return geoMeanImpl; } @@ -527,7 +527,7 @@ * @throws IllegalStateException if data has already been added * (i.e if n > 0) */ - public synchronized void setGeoMeanImpl( + public void setGeoMeanImpl( StorelessUnivariateStatistic geoMeanImpl) { checkEmpty(); this.geoMeanImpl = geoMeanImpl; @@ -538,7 +538,7 @@ * * @return the StorelessUnivariateStatistic implementing the mean */ - public synchronized StorelessUnivariateStatistic getMeanImpl() { + public StorelessUnivariateStatistic getMeanImpl() { return meanImpl; } @@ -553,7 +553,7 @@ * @throws IllegalStateException if data has already been added * (i.e if n > 0) */ - public synchronized void setMeanImpl( + public void setMeanImpl( StorelessUnivariateStatistic meanImpl) { checkEmpty(); this.meanImpl = meanImpl; @@ -564,7 +564,7 @@ * * @return the StorelessUnivariateStatistic implementing the variance */ - public synchronized StorelessUnivariateStatistic getVarianceImpl() { + public StorelessUnivariateStatistic getVarianceImpl() { return varianceImpl; } @@ -579,7 +579,7 @@ * @throws IllegalStateException if data has already been added * (i.e if n > 0) */ - public synchronized void setVarianceImpl( + public void setVarianceImpl( StorelessUnivariateStatistic varianceImpl) { checkEmpty(); this.varianceImpl = varianceImpl; Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java?rev=618097&r1=618096&r2=618097&view=diff ============================================================================== --- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java (original) +++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java Sun Feb 3 13:39:08 2008 @@ -146,4 +146,116 @@ return super.hashCode(); } + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getSumImpl() + */ + public synchronized StorelessUnivariateStatistic getSumImpl() { + return super.getSumImpl(); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setSumImpl(StorelessUnivariateStatistic) + */ + public synchronized void setSumImpl(StorelessUnivariateStatistic sumImpl) { + super.setSumImpl(sumImpl); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getSumsqImpl() + */ + public synchronized StorelessUnivariateStatistic getSumsqImpl() { + return super.getSumsqImpl(); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setSumsqImpl(StorelessUnivariateStatistic) + */ + public synchronized void setSumsqImpl(StorelessUnivariateStatistic sumsqImpl) { + super.setSumsqImpl(sumsqImpl); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getMinImpl() + */ + public synchronized StorelessUnivariateStatistic getMinImpl() { + return super.getMinImpl(); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setMinImpl(StorelessUnivariateStatistic) + */ + public synchronized void setMinImpl(StorelessUnivariateStatistic minImpl) { + super.setMinImpl(minImpl); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getMaxImpl() + */ + public synchronized StorelessUnivariateStatistic getMaxImpl() { + return super.getMaxImpl(); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setMaxImpl(StorelessUnivariateStatistic) + */ + public synchronized void setMaxImpl(StorelessUnivariateStatistic maxImpl) { + super.setMaxImpl(maxImpl); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getSumLogImpl() + */ + public synchronized StorelessUnivariateStatistic getSumLogImpl() { + return super.getSumLogImpl(); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setSumLogImpl(StorelessUnivariateStatistic) + */ + public synchronized void setSumLogImpl(StorelessUnivariateStatistic sumLogImpl) { + super.setSumLogImpl(sumLogImpl); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getGeoMeanImpl() + */ + public synchronized StorelessUnivariateStatistic getGeoMeanImpl() { + return super.getGeoMeanImpl(); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setGeoMeanImpl(StorelessUnivariateStatistic) + */ + public synchronized void setGeoMeanImpl(StorelessUnivariateStatistic geoMeanImpl) { + super.setGeoMeanImpl(geoMeanImpl); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getMeanImpl() + */ + public synchronized StorelessUnivariateStatistic getMeanImpl() { + return super.getMeanImpl(); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setMeanImpl(StorelessUnivariateStatistic) + */ + public synchronized void setMeanImpl(StorelessUnivariateStatistic meanImpl) { + super.setMeanImpl(meanImpl); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getVarianceImpl() + */ + public synchronized StorelessUnivariateStatistic getVarianceImpl() { + return super.getVarianceImpl(); + } + + /** + * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setVarianceImpl(StorelessUnivariateStatistic) + */ + public synchronized void setVarianceImpl(StorelessUnivariateStatistic varianceImpl) { + super.setVarianceImpl(varianceImpl); + } + }