|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.generation5.util.Plot
org.generation5.util.PlotGrid
Plot data as a two-dimensional grid. Data can be passed as either a
two-dimensional array of PlotPoints, or as a three-dimensional
array of doubles. This class was primarily designed to facilitate the
visualization of Kohonen neural network weights, but should work well in
most other situations too.
PlotPoint,
KohonenNN| Field Summary | |
protected PlotPoint[][] |
gridPoints1
A two dimensional array of the grid points. |
protected double[][][] |
gridPoints2
The grid points as a three-dimensional array of doubles. |
| Fields inherited from class org.generation5.util.Plot |
drawAxes, maxX, maxY, minX, minY, plotTypes |
| Constructor Summary | |
PlotGrid()
Creates a new instance of PlotGrid |
|
| Method Summary | |
void |
render(java.awt.Graphics g,
int width,
int height)
Render the grid on a graphics context. |
void |
setGridPoints(double[][][] gridPoints)
Set the grid points as a three-dimensional array of doubles. |
void |
setGridPoints(PlotPoint[][] gridPoints)
Set the grid points as a two-dimensional array of PlotPoints. |
| Methods inherited from class org.generation5.util.Plot |
calculateRanges, drawAxes, getMaximumX, getMaximumY, getMinimumX, getMinimumY, getRangeX, getRangeY, setDrawAxes, setMaximumX, setMaximumY, setMinimumX, setRange, translateCoordinate, translateCoordinate, writeImage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected PlotPoint[][] gridPoints1
protected double[][][] gridPoints2
| Constructor Detail |
public PlotGrid()
| Method Detail |
public void setGridPoints(PlotPoint[][] gridPoints)
PlotPoints. Note
that this will set any data set with setGridPoints(double[][][]) to null.
gridPoints - a two-dimensional array of PlotPoints.public void setGridPoints(double[][][] gridPoints)
setGridPoints(PlotPoint[][]) to
null.
gridPoints - the grid points.
public void render(java.awt.Graphics g,
int width,
int height)
render in interface Visualizablerender in class Plotg - the graphics context.width - the width of the context.height - the height of the context.
|
This documentation is part of the Generation5 JDK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||