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

Class resample.RVHistogramLinear

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

public class RVHistogramLinear
extends RVHistogram
class RVHistogramLinear. Paints a histogram with all the values of the resample-vector including zero-occurences. Each value between the minimal and maximal occuring value is listed (but only if all occuring values are integers ! If we have doubles in the vector, the histogram is painted as in RVHistogramCompressed: only the occuring values are listed in this case)

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


Constructor Index

 o RVHistogramLinear(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 RVHistogramLinear(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 RVHistogramLinear
  public RVHistogramLinear(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 RVHistogramLinear
  public RVHistogramLinear(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