示例#1
0
  public DataPreViewer(ExperimentData expData) {

    int N = expData.numSamples;
    int P = expData.numFeatures;
    double[][] data = expData.data; // expData.rawData;

    // DefaultMutableTreeNode node = null;
    long start = System.currentTimeMillis();

    // logger.append("Creating the result viewers");
    long time = System.currentTimeMillis() - start;

    JTable table =
        createTable(
            expData.sampleNames.size(),
            expData.featureNames.size(),
            expData.sampleNames,
            expData.featureNames,
            expData.attributes,
            data,
            expData.getSNRs());

    String title = P + " Features Selected Data";
    TableViewer tableViewer = new TableViewer(table, title);
    node =
        new DefaultMutableTreeNode(new LeafInfo(title, tableViewer, tableViewer.getJPopupMenu()));

    title = P + " Selected Feature Performance";
  }
示例#2
0
 static {
   // The runtime system executes a class's static
   // initializer when it loads the class.
   System.loadLibrary("VISDA_CJavaInterface");
 }