Made fields final.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141356 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bc5b99791c
commit
610862cbbe
|
@ -21,7 +21,7 @@ import org.apache.commons.math.util.MathUtils;
|
||||||
/**
|
/**
|
||||||
* Value object representing the results of a univariate statistical summary.
|
* Value object representing the results of a univariate statistical summary.
|
||||||
*
|
*
|
||||||
* @version $Revision: 1.4 $ $Date: 2004/06/29 02:18:22 $
|
* @version $Revision: 1.5 $ $Date: 2004/07/02 06:25:05 $
|
||||||
*/
|
*/
|
||||||
public class StatisticalSummaryValues implements Serializable,
|
public class StatisticalSummaryValues implements Serializable,
|
||||||
StatisticalSummary {
|
StatisticalSummary {
|
||||||
|
@ -30,22 +30,22 @@ public class StatisticalSummaryValues implements Serializable,
|
||||||
static final long serialVersionUID = -5108854841843722536L;
|
static final long serialVersionUID = -5108854841843722536L;
|
||||||
|
|
||||||
/** The sample mean */
|
/** The sample mean */
|
||||||
private double mean = Double.NaN;
|
private final double mean;
|
||||||
|
|
||||||
/** The sample variance */
|
/** The sample variance */
|
||||||
private double variance = Double.NaN;
|
private final double variance;
|
||||||
|
|
||||||
/** The number of observations in the sample */
|
/** The number of observations in the sample */
|
||||||
private long n = 0;
|
private final long n;
|
||||||
|
|
||||||
/** The maximum value */
|
/** The maximum value */
|
||||||
private double max = Double.NaN;
|
private final double max;
|
||||||
|
|
||||||
/** The minimum value */
|
/** The minimum value */
|
||||||
private double min = Double.NaN;
|
private final double min;
|
||||||
|
|
||||||
/** The sum of the sample values */
|
/** The sum of the sample values */
|
||||||
private double sum = Double.NaN;
|
private final double sum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
@ -68,11 +68,6 @@ public class StatisticalSummaryValues implements Serializable,
|
||||||
this.sum = sum;
|
this.sum = sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Private no argument contstructor */
|
|
||||||
private StatisticalSummaryValues() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Returns the max.
|
* @return Returns the max.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue