it.unibz.algorithms
Class Utility

java.lang.Object
  extended by it.unibz.algorithms.Utility

public class Utility
extends java.lang.Object

General Utility class used to perform basic printing and data loading tasks


Constructor Summary
Utility()
           
 
Method Summary
static java.lang.String display(java.util.List<Cluster> clusters, boolean rename)
          Method returns formatted string ready to be displayed in the GUI's output box
static DataSet loadDataSet(java.lang.String path)
          Method is used to parse an arff file into the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utility

public Utility()
Method Detail

loadDataSet

public static DataSet loadDataSet(java.lang.String path)
                           throws java.lang.Exception
Method is used to parse an arff file into the system.

Parameters:
path - Is the path to the arff file
Returns:
DataSet representing arff file
Throws:
java.lang.Exception - if its unable to read arff file

display

public static java.lang.String display(java.util.List<Cluster> clusters,
                                       boolean rename)
Method returns formatted string ready to be displayed in the GUI's output box

Parameters:
clusters - List of clusters to display
rename - True if Clusters have to be renamed (For DBSCAN)
Returns:
Formatted output String