|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDataSetStatistic
public class DataSetStatistic
Based on Chrisanna Waldrop, Copyright Officer, 805-893-7773, waldrop@research.ucsb.edu, package edu.ucsb.nmsl.tools, url http://www.nmsl.cs.ucsb.edu/autocap
Constructor Summary | |
---|---|
DataSetStatistic(String name,
Collection<T> c)
This constructor creates a DataSetStatistic with a given name and with data from the specified collection. |
|
DataSetStatistic(String name,
int inititalSize)
Empty data set. |
Method Summary | |
---|---|
void |
addDataPoint(double x)
|
void |
clear()
|
static String |
format(double value,
NumberFormat format)
|
double |
getMax()
|
double |
getMean()
This method returns the mean of all data points in the set. |
double |
getMedian()
This method calculates and returns the median value of the data points in the set. |
double |
getMin()
|
double |
getMode()
|
int |
getModeFrequency()
|
double |
getStdDev()
This method calculates are returns the standard deviation of all the data in the set. |
int |
getZeroFrequency()
|
boolean |
removeDataPoint(double x)
|
Appendable |
report(Appendable buff)
|
Appendable |
report(Appendable buff,
NumberFormat format)
|
void |
sort()
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSetStatistic(String name, int inititalSize)
name
- Descriptive name for data.inititalSize
- Allocate initial size ArrayList.public DataSetStatistic(String name, Collection<T> c)
name
- Descriptive name for data.c
- A collection of data that becomes the data points in the data set.Method Detail |
---|
public void addDataPoint(double x)
public boolean removeDataPoint(double x)
public double getStdDev()
public double getMean()
public double getMedian()
public double getMode()
public int getModeFrequency()
public int getZeroFrequency()
public double getMin()
public double getMax()
public void sort()
public Appendable report(Appendable buff)
public Appendable report(Appendable buff, NumberFormat format)
public static String format(double value, NumberFormat format)
public void clear()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |