gov.sns.tools.plot
Class SmoothData3D

java.lang.Object
  |
  +--gov.sns.tools.plot.ColorSurfaceData
        |
        +--gov.sns.tools.plot.SmoothData3D

public class SmoothData3D
extends ColorSurfaceData

This class is a data class for data used in the FunctionGraphsJPanel class. This class contains 2D grid with values at the grid points. These values will be presented as colored rectangles in the plot. It uses 9-points smooth interpolation to calculate z-value between grid points.


Field Summary
 
Fields inherited from class gov.sns.tools.plot.ColorSurfaceData
gridData, nX, nY, x_max, x_min, x_step, y_max, y_min, y_step, z_max, z_min
 
Constructor Summary
SmoothData3D(int nX, int nY)
          The data set constructor with size of the grid.
 
Method Summary
 void addValue(double x, double y, double value)
          Bins value into the 2D array for x and y with weight = value.
 double getValue(double x, double y)
          Returns the interpolated value of the 2D array for x and y.
static void main(java.lang.String[] args)
          The test method of this class.
 
Methods inherited from class gov.sns.tools.plot.ColorSurfaceData
addValue, calcMaxMinZ, getColor, getColorGenerator, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getScreenSizeX, getScreenSizeY, getSizeX, getSizeY, getValue, getX, getY, multiplyBy, setColorGenerator, setMinMaxX, setMinMaxY, setScreenResolution, setSize, setValue, setZero
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothData3D

public SmoothData3D(int nX,
                    int nY)
The data set constructor with size of the grid.

Method Detail

getValue

public double getValue(double x,
                       double y)
Returns the interpolated value of the 2D array for x and y.

Specified by:
getValue in class ColorSurfaceData

addValue

public void addValue(double x,
                     double y,
                     double value)
Bins value into the 2D array for x and y with weight = value.

Specified by:
addValue in class ColorSurfaceData

main

public static void main(java.lang.String[] args)
The test method of this class.