Fixed license header, added missing javadoc.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141326 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2004-06-20 01:50:18 +00:00
parent a2e44f7732
commit 328e70e319
1 changed files with 30 additions and 19 deletions

View File

@ -1,19 +1,17 @@
/* /*
* Copyright 2004 The Apache Software Foundation.
* *
* Copyright (c) 2004 The Apache Software Foundation. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not * http://www.apache.org/licenses/LICENSE-2.0
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * distributed under the License is distributed on an "AS IS" BASIS,
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* License for the specific language governing permissions and limitations * See the License for the specific language governing permissions and
* under the License. * limitations under the License.
*
*/ */
package org.apache.commons.math.stat.univariate; package org.apache.commons.math.stat.univariate;
@ -22,29 +20,41 @@ import java.io.Serializable;
/** /**
* Value object representing the results of a univariate statistical summary. * Value object representing the results of a univariate statistical summary.
* *
* @version $Revision: 1.1 $ $Date: 2004/05/18 04:17:29 $ * @version $Revision: 1.2 $ $Date: 2004/06/20 01:50:18 $
*/ */
public class StatisticalSummaryValues implements Serializable, StatisticalSummary { public class StatisticalSummaryValues implements Serializable,
StatisticalSummary {
/** Serialization id */ /** Serialization id */
static final long serialVersionUID = -5108854841843722536L; static final long serialVersionUID = -5108854841843722536L;
/** The sample mean */
private double mean = Double.NaN; private double mean = Double.NaN;
/** The sample variance */
private double variance = Double.NaN; private double variance = Double.NaN;
/** The number of observations in the sample */
private long n = 0; private long n = 0;
/** The maximum value */
private double max = Double.NaN; private double max = Double.NaN;
/** The minimum value */
private double min = Double.NaN; private double min = Double.NaN;
/** The sum of the sample values */
private double sum = Double.NaN; private double sum = Double.NaN;
/** /**
* Constructor * Constructor
* *
* @param mean * @param mean the sample mean
* @param variance * @param variance the sample variance
* @param n * @param n the number of observations in the sample
* @param max * @param max the maximum value
* @param min * @param min the minimum value
* @param sum * @param sum the sum of the values
*/ */
public StatisticalSummaryValues(double mean, double variance, long n, public StatisticalSummaryValues(double mean, double variance, long n,
double max, double min, double sum) { double max, double min, double sum) {
@ -57,6 +67,7 @@ public class StatisticalSummaryValues implements Serializable, StatisticalSummar
this.sum = sum; this.sum = sum;
} }
/** Private no argument contstructor */
private StatisticalSummaryValues() { private StatisticalSummaryValues() {
super(); super();
} }