Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }