public class Data
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Data()
This default constructor creates a new data with the name "X".
|
Data(java.lang.String n)
This general constructor creates a new data set with a prescribed name.
|
Modifier and Type | Method and Description |
---|---|
double |
getMaxValue()
This method gets the maximum value of the data set.
|
double |
getMean()
This method returns the mean.
|
double |
getMinValue()
This method gets the minimum value of the data set.
|
java.lang.String |
getName()
This method gets the name of the data set.
|
double |
getOrderStatistic(int i)
This method returns the i'th order statistic.
|
double |
getPSD()
This method gets the standard deviation of the data set treated as a population.
|
double |
getPVariance()
This method returns the variance of the data set treated as a population.
|
double |
getSD()
This method gets the sample standard deviation of the data set treated as
a sample.
|
int |
getSize()
This method gets the number of points in the data set.
|
double |
getValue()
This method gets the current value of the data set.
|
double |
getValue(int i)
This method returns the value of the data set corresponding to a given index.
|
double |
getVariance()
This method gets the variance of the data set treated as a sample.
|
void |
reset()
This method resets the data set by removing all values.
|
void |
setName(java.lang.String n)
This method sets the name of the data set.
|
void |
setValue(double x)
This method adds a new number to the data set and re-compute the mean, mean square,
minimum and maximum values, and order statistics.
|
public Data(java.lang.String n)
n
- the namepublic Data()
public void setValue(double x)
x
- the new value of the data setpublic double getValue()
public double getValue(int i)
i
- the indexpublic double getMean()
public double getPVariance()
public double getPSD()
public double getVariance()
public double getSD()
public double getOrderStatistic(int i)
i
- the indexpublic double getMinValue()
public double getMaxValue()
public void reset()
public int getSize()
public void setName(java.lang.String n)
n
- the name of the data setpublic java.lang.String getName()