Class resample.RVHistogramCompressed
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class resample.RVHistogramCompressed

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----resample.RVHistogram
                           |
                           +----resample.RVHistogramCompressed

public class RVHistogramCompressed
extends RVHistogram
Class RVHistogramCompressed. Paints a histogram with only those x-values which occur in the resample-vector. Zero-occurences are left out.

Use this class if the difference between max and min x-value is big

Example: vector (1 1 3 5 7) would lead to result arrays (x/y) = ((1/2)(3/1)(5/1)(7/1))


Constructor Index

 o RVHistogramCompressed(int, int, ResampleVector)
possible parameters for constructors:

xSize,ySize: canvas-dimension (mandatory)
ResampleVector: vector with the data to present (mandatory)
rangeLeft: show only x-values >= rangeLeft (optional)

rangeLeft makes sense if the vector contains too many elements for the size of the canvas.

 o RVHistogramCompressed(int, int, ResampleVector, int)

Method Index

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

Constructors

 o RVHistogramCompressed
  public RVHistogramCompressed(int xSize,
                               int ySize,
                               ResampleVector resVec)
possible parameters for constructors:

xSize,ySize: canvas-dimension (mandatory)
ResampleVector: vector with the data to present (mandatory)
rangeLeft: show only x-values >= rangeLeft (optional)

rangeLeft makes sense if the vector contains too many elements for the size of the canvas.

 o RVHistogramCompressed
  public RVHistogramCompressed(int xSize,
                               int ySize,
                               ResampleVector resVec,
                               int rangeLeft)

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