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


Variable Index

 o partCount

Constructor Index

 o 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

Method Index

 o calculateHistoArray()
the subclasses have to implement this method in order to calculate the x-and yValue-arrays

Variables

 o partCount
  protected int partCount

Constructors

 o 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

Methods

 o 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