|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.Statistics
public class Statistics
Class Statistics implements basic statistical formulae.
| Constructor Summary | |
|---|---|
Statistics()
no arg constructor |
|
Statistics(Iterable<Double> values)
Construct a new Statistics |
|
| Method Summary | |
|---|---|
void |
addValue(double d)
|
void |
addValue(Double double1)
|
void |
clearAll()
Removes all of the values in the internal collection. |
int |
count()
Number of values in collection of values |
Vector |
getValues()
|
double |
max()
Get largest value in collection of values |
double |
mean()
Get the average value in the collection of values |
double |
median()
Get the median in the collection of values |
double |
min()
Get smallest value in collection of values |
double |
mode()
Get the mode |
int |
modeOccurrenceCount()
Get the occurrences of the mode |
double |
range()
Get the range |
void |
removeValue(int location)
|
void |
removeValues(double d,
boolean removeAll)
Remove value |
void |
removeValues(Double double1,
boolean removeAll)
Remove value |
void |
removeValues(double low,
double high)
Remove values with a value between double1 and double2 |
void |
removeValues(Double low,
Double high)
Remove values with a value between double1 and double2 |
void |
setValues(Calculable[] calcs)
|
void |
setValues(Iterable<Double> vals)
|
double |
standardDeviation()
Get the standard deviation |
double |
sum()
Get the sum of all values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Statistics()
public Statistics(Iterable<Double> values)
values - initial values for new instance| Method Detail |
|---|
public void clearAll()
public int count()
public double max()
public double min()
public double mean()
public double median()
public double mode()
public int modeOccurrenceCount()
public double range()
public double standardDeviation()
public Vector getValues()
public void addValue(Double double1)
public void addValue(double d)
public void setValues(Iterable<Double> vals)
public void setValues(Calculable[] calcs)
public void removeValues(double d,
boolean removeAll)
d - the double to removeremoveAll - false remove first occurrence; true remove all
public void removeValues(Double double1,
boolean removeAll)
double1 - the Double to removeremoveAll - false remove first occurrence; true remove allpublic void removeValue(int location)
public void removeValues(Double low,
Double high)
low - the lowest value to removehigh - the highest value to remove
public void removeValues(double low,
double high)
low - the lowest value to removehigh - the highest value to removepublic double sum()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||