All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.visualize.MatrixPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----weka.gui.visualize.MatrixPanel
- public class MatrixPanel
- extends javax.swing.JPanel
This panel displays a plot matrix of the user selected attributes
of a given data set.
The datapoints are coloured using a discrete colouring set if the
user has selected a nominal attribute for colouring. If the user
has selected a numeric attribute then the datapoints are coloured
using a colour spectrum ranging from blue to red (low values to
high). Datapoints missing a class value are displayed in black.
- Version:
- $Revision: 1.5 $
- Author:
- Ashraf M. Kibriya (amk14@cs.waikato.ac.nz)
MatrixPanel()
- Constructor
initInternalFields()
- Initializes internal data fields, i.e.
main(String[])
- Main method for testing this class
setInstances(Instances)
- This method changes the Instances object of this class to a new one.
setPercent()
- Calculates the percentage to resample
setupAttribLists()
- Sets up the UI's attributes lists
MatrixPanel
public MatrixPanel()
Constructor
- Parameters:
ins - The instances object for the matrix
initInternalFields
public void initInternalFields()
Initializes internal data fields, i.e. data values, type, missing and color cache arrays
setupAttribLists
public void setupAttribLists()
Sets up the UI's attributes lists
setPercent
public void setPercent()
Calculates the percentage to resample
setInstances
public void setInstances(Instances newInst)
This method changes the Instances object of this class to a new one. It also does all the necessary
initializations for displaying the panel. This must be called before trying to display the panel.
- Parameters:
newInst - The new set of Instances
main
public static void main(java.lang.String args[])
Main method for testing this class
All Packages Class Hierarchy This Package Previous Next Index WEKA's home