|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uah.math.distributions.Data
public class Data
This class models a simple implementation of a data distribution.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Data(java.lang.String n)
n
- the namepublic Data()
Method Detail |
---|
public void setValue(double x)
x
- the new value of the data setpublic double getValue()
public double getValue(int i)
i
- the index
public double getMean()
public double getPVariance()
public double getPSD()
public double getVariance()
public double getSD()
public double getOrderStatistic(int i)
i
- the index
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |