Changed getN() to return long.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5895dba6f5
commit
43af865138
|
@ -23,7 +23,7 @@ package org.apache.commons.math.stat.univariate;
|
|||
* This interface is designed to be used for calculating statistics that can be computed in
|
||||
* one pass through the data without storing the full array of sample values.
|
||||
*
|
||||
* @version $Revision: 1.17 $ $Date: 2004/07/04 22:03:03 $
|
||||
* @version $Revision: 1.18 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public interface StorelessUnivariateStatistic extends UnivariateStatistic {
|
||||
|
||||
|
@ -67,7 +67,7 @@ public interface StorelessUnivariateStatistic extends UnivariateStatistic {
|
|||
* Returns the number of values that have been added.
|
||||
* @return the number of values.
|
||||
*/
|
||||
double getN();
|
||||
long getN();
|
||||
|
||||
/**
|
||||
* Clears all the internal state of the Statistic
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.18 $ $Date: 2004/07/04 09:02:36 $
|
||||
* @version $Revision: 1.19 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class FirstMoment extends AbstractStorelessUnivariateStatistic
|
||||
implements Serializable {
|
||||
|
@ -103,7 +103,7 @@ public class FirstMoment extends AbstractStorelessUnivariateStatistic
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.26 $ $Date: 2004/07/04 22:06:07 $
|
||||
* @version $Revision: 1.27 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class Kurtosis extends AbstractStorelessUnivariateStatistic implements Serializable {
|
||||
|
||||
|
@ -119,7 +119,7 @@ public class Kurtosis extends AbstractStorelessUnivariateStatistic implements Se
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return moment.getN();
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ import org.apache.commons.math.stat.univariate.summary.Sum;
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.20 $ $Date: 2004/07/04 09:02:36 $
|
||||
* @version $Revision: 1.21 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class Mean extends AbstractStorelessUnivariateStatistic
|
||||
implements Serializable {
|
||||
|
@ -106,7 +106,7 @@ public class Mean extends AbstractStorelessUnivariateStatistic
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return moment.getN();
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.20 $ $Date: 2004/07/04 22:10:02 $
|
||||
* @version $Revision: 1.21 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class StandardDeviation extends AbstractStorelessUnivariateStatistic
|
||||
implements Serializable {
|
||||
|
@ -67,7 +67,7 @@ public class StandardDeviation extends AbstractStorelessUnivariateStatistic
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return variance.getN();
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.24 $ $Date: 2004/07/04 22:09:07 $
|
||||
* @version $Revision: 1.25 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class Variance extends AbstractStorelessUnivariateStatistic implements Serializable {
|
||||
|
||||
|
@ -96,7 +96,7 @@ public class Variance extends AbstractStorelessUnivariateStatistic implements Se
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return moment.getN();
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.19 $ $Date: 2004/07/04 09:02:36 $
|
||||
* @version $Revision: 1.20 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class Max extends AbstractStorelessUnivariateStatistic implements Serializable {
|
||||
|
||||
|
@ -75,7 +75,7 @@ public class Max extends AbstractStorelessUnivariateStatistic implements Seriali
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.20 $ $Date: 2004/07/04 09:02:36 $
|
||||
* @version $Revision: 1.21 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class Min extends AbstractStorelessUnivariateStatistic implements Serializable {
|
||||
|
||||
|
@ -75,7 +75,7 @@ public class Min extends AbstractStorelessUnivariateStatistic implements Seriali
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.20 $ $Date: 2004/07/04 09:02:36 $
|
||||
* @version $Revision: 1.21 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class Product extends AbstractStorelessUnivariateStatistic implements Serializable {
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class Product extends AbstractStorelessUnivariateStatistic implements Ser
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.23 $ $Date: 2004/07/04 09:02:36 $
|
||||
* @version $Revision: 1.24 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class Sum extends AbstractStorelessUnivariateStatistic implements Serializable {
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class Sum extends AbstractStorelessUnivariateStatistic implements Seriali
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatis
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.20 $ $Date: 2004/07/04 09:02:36 $
|
||||
* @version $Revision: 1.21 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class SumOfLogs extends AbstractStorelessUnivariateStatistic implements Serializable {
|
||||
|
||||
|
@ -74,7 +74,7 @@ public class SumOfLogs extends AbstractStorelessUnivariateStatistic implements S
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import org .apache.commons.math.stat.univariate.AbstractStorelessUnivariateStati
|
|||
* one of the threads invokes the <code>increment()</code> or
|
||||
* <code>clear()</code> method, it must be synchronized externally.
|
||||
*
|
||||
* @version $Revision: 1.20 $ $Date: 2004/07/04 09:02:36 $
|
||||
* @version $Revision: 1.21 $ $Date: 2004/07/10 17:09:08 $
|
||||
*/
|
||||
public class SumOfSquares extends AbstractStorelessUnivariateStatistic implements Serializable {
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class SumOfSquares extends AbstractStorelessUnivariateStatistic implement
|
|||
/**
|
||||
* @see org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic#getN()
|
||||
*/
|
||||
public double getN() {
|
||||
public long getN() {
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue