Ignore:
Timestamp:
Oct 9, 2010, 12:24:38 PM (14 years ago)
Author:
gnappo
Message:

Aggiunto output in formato XML dei dati; modificato MQI (adesso cerca nella partizione piu` grande).

Location:
src/main/java/weka/clusterers/forMetisMQI/util
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • src/main/java/weka/clusterers/forMetisMQI/util/Configuration.java

    r24 r26  
    1111        private int numberOfClusters = 2;
    1212       
     13        private String outputFile = null;
     14       
     15        public String getOutputFile() {
     16                return outputFile;
     17        }
     18
     19        public void setOutputFile(String outputFile) {
     20                this.outputFile = outputFile;
     21        }
     22
    1323        private static Configuration instance = null;
    1424       
  • src/main/java/weka/clusterers/forMetisMQI/util/Random.java

    r25 r26  
    1 package weka.clusterers.forMetisMQI;
     1package weka.clusterers.forMetisMQI.util;
    22
    33public class Random extends java.util.Random {
     
    1515        public static Random instance() {
    1616                if(instance == null) {
    17                         instance = new Random(/*new java.util.Random().nextLong()*/1234567890);
     17                        instance = new Random(new java.util.Random().nextLong()/*1234567890*/);
    1818                }
    1919                return instance;
  • src/main/java/weka/clusterers/forMetisMQI/util/Util.java

    r24 r26  
    1616import org.apache.commons.collections15.Transformer;
    1717
    18 import weka.clusterers.forMetisMQI.Random;
    1918import weka.clusterers.forMetisMQI.graph.Edge;
    2019import weka.clusterers.forMetisMQI.graph.Node;
     
    9392       
    9493        public static JPanel panelGraph(Graph<Node, Edge> g){
    95                 Layout<Node, Edge> layout = new KKLayout<Node, Edge>(g);
     94                Layout<Node, Edge> layout = new FRLayout<Node, Edge>(g);
    9695                layout.setSize(new Dimension(800,600)); // sets the initial size of the space
    9796                // The BasicVisualizationServer<V,E> is parameterized by the edge types
Note: See TracChangeset for help on using the changeset viewer.