public class StatBin extends Object
Modifier and Type | Field and Description |
---|---|
(package private) ArrayList<Character> |
bin
Array of characters included.
|
Constructor and Description |
---|
StatBin()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCharacter(Character c)
Add a new character into these stats.
|
(package private) double |
mean(int num,
long sum)
Compute a mean from num and sum.
|
void |
printAllData()
Generate and print all individual data we have available.
|
void |
printAllStats()
Generate and print all the stats we have available.
|
int |
size()
Get size of the bin.
|
(package private) static long |
square(long i)
Square an integer.
|
(package private) double |
stdev(int num,
long sum,
long sumSquare)
Compute a standard deviation from num, sum, and sum-of-squares.
|
public void addCharacter(Character c)
public int size()
static long square(long i)
double mean(int num, long sum)
double stdev(int num, long sum, long sumSquare)
public void printAllStats()
public void printAllData()