|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.aavalla.utils.general.BasicStatNumbers<N>
public final class BasicStatNumbers<N extends java.lang.Number & java.lang.Comparable<? super N>>
This immutable class represents basic statistical numbers computed from a list of numbers.
Field Summary | |
---|---|
int |
count
Count |
N |
max
Largest |
double |
mean
Mean |
double |
median
Median |
N |
min
Smallest |
double |
sd
Standard Deviation |
double |
sum
Sum |
Constructor Summary | |
---|---|
BasicStatNumbers(java.util.Collection<N> numberCollection)
Constructs a BasicStatNumbers object and fills its fields from the collection of numbers given as parameter |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int count
public final double sum
public final N extends java.lang.Number & java.lang.Comparable<? super N> min
public final N extends java.lang.Number & java.lang.Comparable<? super N> max
public final double median
public final double mean
public final double sd
Constructor Detail |
---|
public BasicStatNumbers(java.util.Collection<N> numberCollection)
numberCollection
- numbers to calculate stats from
java.lang.IllegalArgumentException
- if collection is empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |