java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.graffiti.plugin.inspector.InspectorTab
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.statistics.TabStatistics
All Implemented Interfaces:
ActionListener, ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, ContainsTabbedPane

public class TabStatistics
extends InspectorTab
implements ActionListener, ContainsTabbedPane
Author:
Christian Klukas
See Also:
Serialized Form
Recent revisions:
2.8 Update Apache Commons Math3 references.
  • Field Details

    • epsilon

      public static double epsilon
  • Constructor Details

    • TabStatistics

      public TabStatistics()
      Constructs a PatternTab and sets the title.
  • Method Details

    • getTabbedPane

      public JTabbedPane getTabbedPane()
      Specified by:
      getTabbedPane in interface ContainsTabbedPane
    • getChoosenColor

      public static Color getChoosenColor​(Color refCol)
    • postAttributeAdded

      public void postAttributeAdded​(AttributeEvent e)
    • postAttributeChanged

      public void postAttributeChanged​(AttributeEvent e)
    • postAttributeRemoved

      public void postAttributeRemoved​(AttributeEvent e)
    • preAttributeAdded

      public void preAttributeAdded​(AttributeEvent e)
    • preAttributeChanged

      public void preAttributeChanged​(AttributeEvent e)
    • preAttributeRemoved

      public void preAttributeRemoved​(AttributeEvent e)
    • transactionFinished

      public void transactionFinished​(TransactionEvent e)
    • transactionStarted

      public void transactionStarted​(TransactionEvent e)
    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • getScatterPlot

      public JComponent getScatterPlot​(Graph graph)
    • getRankValues

      public static DoubleAndSourceList[] getRankValues​(Collection<Double> x)
    • getRankValues

      public static DoubleAndSourceList[] getRankValues​(Double[] x, Double[] y)
    • doDavidSchnellTest

      public static List<Node> doDavidSchnellTest​(List<Node> nodes, Graph g, int probab_123)
      Returns all nodes which contain samples which are not normaly distributed.
      Parameters:
      nodes -
      g -
      probab_123 -
      Returns:
      Nodes which contain samples which are not normaly distributed.
    • inDavidRange

      public static boolean inDavidRange​(double pg, int n, int columnIdx123_5_1_01percent)
    • calculateCorrelation

      public static CorrelationResult calculateCorrelation​(MyXML_XYDataset dataset, String dataset1, String dataset2, boolean mergeDataset, int dataset2offset, double prob, boolean rankOrder)
    • createScatterPlotBlock

      public JComponent createScatterPlotBlock​(boolean plotAverage, boolean tickMarksVisible, boolean showRangeAxis, boolean showLegend, double minimumR, float outlineBorderWidth, boolean mergeDataset, double prob, boolean rankOrder, double currGammaValue, Color colR_1, Color colR0, Color colR1, Collection<GraphElement> gEe, Graph graph, boolean returnResult, Component lastScatterPlot, JComponent placeForScatter)
    • getRcolor

      public static Color getRcolor​(float maxOrMinR)
    • getRcolor

      public static Color getRcolor​(float maxOrMinR, double gamma, Color col__1, Color col_0, Color col_1)
      Returns col1 if maxOrMinR is -1, returns col2 if maxOrMinR is 1, returns a color between these colors if marOrMin is between -1 and 1.
      Parameters:
      maxOrMinR - a value between -1 and 1
      gamma - Instead of r, r^gamma is used for determining the color. This makes it possible to stay longer near col_0.
      col1 - The returned color in case maxOrMinR is -1
      col2 - The returned color in case maxOrMinR is 1
      Returns:
      A average color depending on maxOrMinR
    • visibleForView

      public boolean visibleForView​(View v)
      Specified by:
      visibleForView in class InspectorTab
    • getTabParentPath

      public String getTabParentPath()
      Description copied from class: InspectorTab
      returns a path string, that tells Vanted, where to put this tab. It is a dot-delimited string if it is not overridden, it'll return null and Vanted will put this tab on the root level If the path is not empty, Vanted puts this tab as child in the given tab hierarchy Example: return 'Network' and this tab is put as child in the Network Tab If the parent tab does not exist, it will be created
      Overrides:
      getTabParentPath in class InspectorTab
      Returns:
    • getPreferredTabPosition

      public int getPreferredTabPosition()
      Description copied from class: InspectorTab
      Returns the preferred tab position in its parent tab. It can be InspectorTab.{LEADING,TRAILING,RANDOM,POSNUM} where POSNUM is the absolute position number This gives more control about the layout of subtabs
      Overrides:
      getPreferredTabPosition in class InspectorTab
      Returns: