Class resample.RVHistogramPartSums
All Packages Class Hierarchy This Package Previous Next Index
Class resample.RVHistogramPartSums
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----resample.RVHistogram
|
+----resample.RVHistogramPartSums
- public class RVHistogramPartSums
- extends RVHistogram
Class RVHistogramPartSums. Paints a histogram.
The vector is splitted into [partCount] value-intervals of equal size
and the sums of these intervals are printed
Example: vector (1 1 1 2 10) with partCount=2 would lead to
result-array (x/y) = (('<=5',4)('<=10',1))
If the vector can't be splitted into [partCount] equal parts,
the last interval can be of a slightly different size
Use this class if the vector consists of many different values
(for example numbers of type double) to get an overview about the
distribution of the elements
-
partCount
-
-
RVHistogramPartSums(int, int, ResampleVector, int)
-
constructor-parameters:
xSize,ySize: canvas-dimension
ResampleVector: vector with the data to present
partCount: number of parts in which to split vector
-
calculateHistoArray()
- the subclasses have to implement this method in order to
calculate the x-and yValue-arrays
partCount
protected int partCount
RVHistogramPartSums
public RVHistogramPartSums(int xSize,
int ySize,
ResampleVector resVec,
int partCount)
- constructor-parameters:
xSize,ySize: canvas-dimension
ResampleVector: vector with the data to present
partCount: number of parts in which to split vector
calculateHistoArray
protected void calculateHistoArray()
- the subclasses have to implement this method in order to
calculate the x-and yValue-arrays
- Overrides:
- calculateHistoArray in class RVHistogram
All Packages Class Hierarchy This Package Previous Next Index