|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--shared.StatData
StatData is a class for doing statistical computations.
Field Summary | |
static int |
CLASS_ACC_DATA
Deprecated. Use Java's instanceOf() function instead of class_id(). |
static int |
CLASS_ERROR_DATA
Deprecated. Use Java's instanceOf() function instead of class_id(). |
static int |
CLASS_STAT_DATA
Deprecated. Use Java's instanceOf() function instead of class_id(). |
static int |
STAT_DATA_ID_BASE
Deprecated. Use Java's instanceOf() function instead of class_id(). |
Constructor Summary | |
StatData()
Constructor. |
Method Summary | |
void |
append(StatData other)
Append function adds the items of the other StatData to the items from this StatData. |
StatData |
assign(StatData rhs)
Set the StatData's member data to the same as that passed-in as 'rhs'. |
static int |
cell(double value,
double mean,
double columnWidth)
Generates a cell number centered aroung 0 for histograms. |
int |
class_id()
Deprecated. Use Java's instanceOf built-in instead. |
void |
clear()
Clear function removes all items from the StatData. |
void |
display_math_histogram(double columnWidth,
int precision)
Generate histogram for the data. |
void |
display_math_histogram(double columnWidth,
int precision,
java.io.Writer stream)
Generate histogram for the data. |
void |
display()
Displays the data. |
void |
display(java.io.Writer stream)
Displays the data. |
boolean |
equals(StatData rhs)
Compare the base-class member data of StatData for equality. |
double |
index(int indx)
Returns the element at the specified index. |
void |
insert(double item)
Inserts an item into the Array. |
double |
mean()
Calculates the mean of the data. |
double |
mean(double trim)
Calculates the trimmed mean of the data. |
boolean |
notEquals(StatData rhs)
Tests if this StatData does not have equivalent data members. |
void |
percentile(double confIntProb,
DoubleRef low,
DoubleRef high)
Returns the confidence interval for the given confidence probability. |
int |
size()
Returns the number of the items stored in this StatData. |
double |
squared_error(double trueVal)
Compute squared error around the true value. |
double |
std_dev_of_mean()
Calculates the standard-deviation of the mean of the data. |
double |
std_dev_of_mean(double trim)
Calculates the standard-deviation of the mean of the data. |
double |
std_dev()
Calculates the standard-deviation of the data. |
double |
std_dev(double trim)
Calculates the standard-deviation of the data. |
double |
variance_of_mean()
Calculates the variance of the mean of the data. |
double |
variance_of_mean(double trim)
Calculates the variance of the mean of the data. |
double |
variance()
Calculates the variance of the data. |
double |
variance(double trim)
Calculates the variance of the data. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int STAT_DATA_ID_BASE
public static final int CLASS_STAT_DATA
public static final int CLASS_ACC_DATA
public static final int CLASS_ERROR_DATA
Constructor Detail |
public StatData()
Method Detail |
public int size()
public void insert(double item)
item
- Item to be inserted into the Array.public double index(int indx)
indx
- The index of the element requested.public double variance(double trim)
trim
- Sets the value at which the variance will be trimmed to.public double variance()
public double std_dev(double trim)
trim
- Sets the value at which the standard-deviation will be trimmed to.public double std_dev()
public double variance_of_mean(double trim)
trim
- Sets the value at which the variance will be trimmed to.public double variance_of_mean()
public double std_dev_of_mean(double trim)
trim
- Sets the value at which the standard-deviation will be trimmed to.public double std_dev_of_mean()
public void percentile(double confIntProb, DoubleRef low, DoubleRef high)
confIntProb
- The confidence probability. Must be between 0 and 1.low
- The lower bound for the interval.high
- The upper bound for the interval.public void display(java.io.Writer stream)
stream
- The Writer to which the StatData is displayed.public void display()
public void display_math_histogram(double columnWidth, int precision, java.io.Writer stream)
columnWidth
- The width of columns.precision
- Precision used for numerical display.stream
- The Writer to which the histogram is displayed.public void display_math_histogram(double columnWidth, int precision)
columnWidth
- The width of columns.precision
- Precision used for numerical display.public void append(StatData other)
other
- The StatData to be appended.public void clear()
public int class_id()
public StatData assign(StatData rhs)
rhs
- The StatData whose member data is to be duplicated in this StatData.public boolean equals(StatData rhs)
rhs
- The StatData to be compared to.public boolean notEquals(StatData rhs)
rhs
- The StatData to be compared to.public double squared_error(double trueVal)
trueVal
- The true value for which squared error is requested.public double mean()
public double mean(double trim)
trim
- The amount of trimming to be done. Trim = 0.5 now gives the median.public static int cell(double value, double mean, double columnWidth)
value
- The histogram value.mean
- Mean of values in the histogram.columnWidth
- The width of columns in the histogram.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |