private Dictionary <int, double[]> idClusterDistance;// int is the id of cluster and the double array contains the distance array generated for that cluster public Clustering(DataTable dataTable, string parentPath, EStrategy faultLocalizationStrategy) { this.hitSpectraMatrix = dataTable; this.parentPath = parentPath; this.faultLocalizationStrategy = faultLocalizationStrategy; buildHitSpectraMatrixArray(); buildFailedTestcasesInHitSpectraMatrixArray(); buildPassedTestcasesInHitSpectraMatrixArray(); try { matlabClustering = new MatlabClustering(); } catch (Exception e) { Console.WriteLine(e.Message); } }
public Clustering(DataTable dataTable, string parentPath, Dictionary <string, CommandLineArgument> cmdArguments) { this.hitSpectraMatrix = dataTable; this.parentPath = parentPath; this.commandLineArguments = cmdArguments; readCommandLineInputParameters(); buildHitSpectraMatrixArray(); buildFailedTestcasesInHitSpectraMatrixArray(); buildPassedTestcasesInHitSpectraMatrixArray(); try { matlabClustering = new MatlabClustering(); } catch (Exception e) { Console.WriteLine(e.Message); } }