|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object HistogramGenerator
public class HistogramGenerator
Class to generate a histogram
Constructor Summary | |
---|---|
HistogramGenerator()
|
Method Summary | |
---|---|
void |
countValues(String inputFile,
int factor)
Method to read a set of values from the inputFile create even bins based on the passed factor. |
void |
countValuesForKeys(String inputFile,
double[] keys)
Method to read a set of values from the inputFile and create bins based on the array of keys. |
static void |
genNewNormal()
Method to generate the normal histogram |
static void |
genNormal()
Method to generate the normal histogram |
static void |
genUniform()
Generate the histogram from the uniform data |
static void |
main(String[] args)
Main method for testing |
void |
writeFile(String fileName)
Method to output the keys and values in the histogram to a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HistogramGenerator()
Method Detail |
---|
public void countValuesForKeys(String inputFile, double[] keys)
inputFile
- the file to read froman
- array of key values to usepublic void countValues(String inputFile, int factor)
inputFile
- the file to read fromfactor
- the factor to use to break the values into binspublic void writeFile(String fileName)
fileName
- the name of the file to write topublic static void genUniform()
public static void genNormal()
public static void genNewNormal()
public static void main(String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |