Changeset 26 for src/main/java/weka/clusterers/forMetisMQI/util
- Timestamp:
- Oct 9, 2010, 12:24:38 PM (14 years ago)
- 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 11 11 private int numberOfClusters = 2; 12 12 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 13 23 private static Configuration instance = null; 14 24 -
src/main/java/weka/clusterers/forMetisMQI/util/Random.java
r25 r26 1 package weka.clusterers.forMetisMQI ;1 package weka.clusterers.forMetisMQI.util; 2 2 3 3 public class Random extends java.util.Random { … … 15 15 public static Random instance() { 16 16 if(instance == null) { 17 instance = new Random( /*new java.util.Random().nextLong()*/1234567890);17 instance = new Random(new java.util.Random().nextLong()/*1234567890*/); 18 18 } 19 19 return instance; -
src/main/java/weka/clusterers/forMetisMQI/util/Util.java
r24 r26 16 16 import org.apache.commons.collections15.Transformer; 17 17 18 import weka.clusterers.forMetisMQI.Random;19 18 import weka.clusterers.forMetisMQI.graph.Edge; 20 19 import weka.clusterers.forMetisMQI.graph.Node; … … 93 92 94 93 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); 96 95 layout.setSize(new Dimension(800,600)); // sets the initial size of the space 97 96 // The BasicVisualizationServer<V,E> is parameterized by the edge types
Note: See TracChangeset
for help on using the changeset viewer.