net.sourceforge.jiu.color.data
Class ArrayHistogram1D
java.lang.Object
net.sourceforge.jiu.color.data.ArrayHistogram1D
- Histogram1D
public class ArrayHistogram1D
extends java.lang.Object
A one-dimensional histogram data class that stores its counters in memory.
Counters are stored in an
int
array of length
getMaxValue()
+ 1
so that
k
values will require
k * 4
bytes.
ArrayHistogram1D(int numValues) - Creates a histogram with the argument's number of values, from
0 to numValues - 1 .
|
ArrayHistogram1D
public ArrayHistogram1D(int numValues)
Creates a histogram with the argument's number of values, from
0
to numValues - 1
.
numValues
- the number of counters in the histogram; must be one or larger