|
Mobios v0.91 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmobios.util.Histogram
public class Histogram
Given values, 1-d or 2-d, count the histogram
| Nested Class Summary | |
|---|---|
static class |
Histogram.BinInfo
|
| Constructor Summary | |
|---|---|
Histogram()
|
|
| Method Summary | |
|---|---|
static double |
allPairs(String[] args)
|
static double |
allPairs(String[] args,
boolean print)
|
static ArrayList<Histogram.BinInfo> |
completeOneDHistogram(double start,
double width,
double[] dist,
int first,
int last)
Computes a one-dimensional histogram |
static String |
continuousPivotSpaceHistogram(String[] args)
Read a file consisting of coordiantes of points in pivot-space, i.e. |
static String |
continuousPivotSpaceHistogram(String[] args,
boolean print)
|
static void |
main(String[] args)
|
static double[][] |
oneDHistogram(double start,
double width,
double[] dist)
Compute one-dimensional histogram |
static void |
pivotSpaceHistogram(String[] args)
Reads a file consisting of coordiantes of points in pivot-space, i.e. |
static void |
pivotSpaceTwoDHistogram(String[] args)
Read a file consisting of coordiantes of points in pivot-space, i.e. |
static int[][] |
TwoDHist(double xMin,
double xMax,
int xSize,
double[] xValue,
double yMin,
double yMax,
int ySize,
double[] yValue)
Given the 2-d (x-y) values, ranges and number of bins, out put the (non-zero) number of occurances of each 2-d value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Histogram()
| Method Detail |
|---|
public static ArrayList<Histogram.BinInfo> completeOneDHistogram(double start,
double width,
double[] dist,
int first,
int last)
start - the starting boundary of bins, bins can be left to this starting point.width - width of bins, must be positivedist - the array of distances to compute histogramfirst - inclusivelast - exclusive
public static double[][] oneDHistogram(double start,
double width,
double[] dist)
start - the starting boundary of binswidth - width of binsdist - the array of distances to compute histogram
public static int[][] TwoDHist(double xMin,
double xMax,
int xSize,
double[] xValue,
double yMin,
double yMax,
int ySize,
double[] yValue)
xMin - minimum value of xxMax - maximum value of xxSize - number of bins for x, or more accurately, how many parts the x value range will be
divided intoxValue - values of xyMin - minimum value of yyMax - maximum value of yySize - number of bins for y, or more accurately, how many parts the y value range will be
divided intoyValue - values of y
public static void pivotSpaceHistogram(String[] args)
throws Exception
args - the first should be the file name, then a series of numbers or chars, x0, x1, ..., xn,
corresponding to dimensions d0, d1, ..., dn.
Exception
public static void pivotSpaceTwoDHistogram(String[] args)
throws Exception
args - the first should be the file name, the second and third should be sequential id of
dimensions to compute histogram, start from 0.
Exception
public static String continuousPivotSpaceHistogram(String[] args)
throws Exception
args - the first should be the file name, then width of bin. then a series of numbers or
chars, x0, x1, ..., xn, corresponding to dimensions d0, d1, ..., dn.
Exception
public static String continuousPivotSpaceHistogram(String[] args,
boolean print)
throws Exception
Exception
public static double allPairs(String[] args)
throws Exception
Exception
public static double allPairs(String[] args,
boolean print)
throws Exception
Exception
public static void main(String[] args)
throws Exception
Exception
|
Mobios v0.91 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||