edu.uah.math.distributions
Class Data

java.lang.Object
  |
  +--edu.uah.math.distributions.Data

public class Data
extends java.lang.Object

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 with a prescribed name.
 
Method Summary
 double getMaxValue()
          Get the maximum value of the data set
 double getMean()
          Get the mean
 double getMinValue()
          Get the minimum value of the data set
 java.lang.String getName()
          Set the name of the data set
 double getPSD()
          Get the population standard deviation
 double getPVariance()
          Get the population variance
 double getSD()
          Get the sample standard deviation of the data set
 int getSize()
          Get the number of pointCount in the data set
 double getValue()
          Get the current value of the data set
 double getValue(int i)
          This method returns the i'th value of the data set.
 double getVariance()
          Get the sample variance of the data set
 void reset()
          Reset the data set
 void setName(java.lang.String name)
          Get 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

Data

public Data(java.lang.String n)
This general constructor creates a new data with a prescribed name.


Data

public Data()
This default constructor creates a new data with the name "X"

Method Detail

setValue

public 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


getValue

public double getValue()
Get the current value of the data set


getValue

public double getValue(int i)
This method returns the i'th value of the data set.


getMean

public double getMean()
Get the mean


getPVariance

public double getPVariance()
Get the population variance


getPSD

public double getPSD()
Get the population standard deviation


getVariance

public double getVariance()
Get the sample variance of the data set


getSD

public double getSD()
Get the sample standard deviation of the data set


getMinValue

public double getMinValue()
Get the minimum value of the data set


getMaxValue

public double getMaxValue()
Get the maximum value of the data set


reset

public void reset()
Reset the data set


getSize

public int getSize()
Get the number of pointCount in the data set


setName

public void setName(java.lang.String name)
Get the name of the data set


getName

public java.lang.String getName()
Set the name of the data set