Package weka.gui

Class InstancesSummaryPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class InstancesSummaryPanel extends JPanel
This panel just displays relation name, number of instances, and number of attributes.
Version:
$Revision: 9348 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)
See Also:
  • Constructor Details

    • InstancesSummaryPanel

      public InstancesSummaryPanel()
      Creates the instances panel with no initial instances.
  • Method Details

    • setShowZeroInstancesAsUnknown

      public void setShowZeroInstancesAsUnknown(boolean zeroAsUnknown)
      Set whether to show zero instances as unknown (i.e. "?" rather than zero). This is useful if header information has been read and the instances themselves will be loaded incrementally.
      Parameters:
      zeroAsUnknown - true if zero instances will be displayed as "unknown", i.e. "?"
    • getShowZeroInstancesAsUnknown

      public boolean getShowZeroInstancesAsUnknown()
      Get whether to show zero instances as unknown (i.e. "?" rather than zero). This is useful if header information has been read and the instances themselves will be loaded incrementally.
      Returns:
      true if zero instances will be displayed as "unknown", i.e. "?"
    • setInstances

      public void setInstances(Instances inst)
      Tells the panel to use a new set of instances.
      Parameters:
      inst - a set of Instances
    • main

      public static void main(String[] args)
      Tests out the instance summary panel from the command line.
      Parameters:
      args - optional name of dataset to load