|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.aerith.misao.util.Histogram
The Histogram represents a histogram of the specified
statisticable buffer.
| Field Summary | |
protected int[] |
buffer
The buffer. |
| Constructor Summary | |
protected |
Histogram()
Constructs an empty Histogram. |
|
Histogram(Statisticable target_buffer,
double minimum_value,
double maximum_value,
int division_count)
Constructs a Histogram of the specified
statisticable buffer. |
| Method Summary | |
Histogram |
accumulate()
Accumulates the amount values in this histogram and creates a new Histogram. |
Array |
createCloneArray()
Creates a clone Array. |
int |
getAt(int index)
Gets the amount of pixels at the block of the specified index. |
int |
getDataCount()
Gets the number of data. |
int |
getOverflow()
Gets the amount of pixels whose value is greater than the specified maximum value. |
int |
getUnderflow()
Gets the amount of pixels whose value is smaller than the specified minimum value. |
double |
getValueAt(int index)
Gets the value of data at the specified location. |
double |
lookup(double index)
Looks up this histogram and gets the amount value of the specified index. |
double |
lookupInversed(double value)
Looks up the inversed histogram and gets the index of the specified amount value. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected int[] buffer
| Constructor Detail |
protected Histogram()
Histogram.
public Histogram(Statisticable target_buffer,
double minimum_value,
double maximum_value,
int division_count)
Histogram of the specified
statisticable buffer.target_buffer - the statisticable buffer to calculate
histogram.minimum_value - the minimum value of the histogram range.maximum_value - the maximum value of the histogram range.division_count - the division_count;| Method Detail |
public int getDataCount()
public double getValueAt(int index)
throws java.lang.IndexOutOfBoundsException
index - the location of the data.public int getUnderflow()
public int getOverflow()
public int getAt(int index)
index - the index.public double lookup(double index)
the - index of buffer to look up.public double lookupInversed(double value)
value - the amount value to look up.public Histogram accumulate()
Histogram.public Array createCloneArray()
Array.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||