Exemplo n.º 1
0
        private void RunSift(string name, string dirName, DCDFile dcd = null)
        {
            DateTime      cpuStart = DateTime.Now;
            ClusterOutput output   = null;
            Sift          s        = new Sift();

            if (beginJob != null)
            {
                beginJob(currentProcessName, s.ToString(), dirName, "NONE");
            }
            progressDic.Add(name, s);
            clType = s.ToString();
            output = s.RunSift(dirName);
            UpdateOutput(name, dirName, null, output, "Sift", cpuStart, DateTime.Now, s);
        }
Exemplo n.º 2
0
 private void RunSift(string name, string dirName,DCDFile dcd = null)
 {
     DateTime cpuStart = DateTime.Now;
     ClusterOutput output = null;
     Sift s = new Sift();
     
     progressDic.Add(name, s);            
     clType = s.ToString();
     output=s.RunSift(dirName);
     UpdateOutput(name, dirName, null,output, "Sift",cpuStart,DateTime.Now, s);
 }
Exemplo n.º 3
0
        private ClusterOutput PrepareClustersJuryLike(Dictionary<string, List<int>> dic, List<string> structures)
        {
            List<string> juryList = new List<string>();
            ClusterOutput juryOut;
            jury1D jury = new jury1D();
            jury.PrepareJury(al);
            foreach (var item in dic.Keys)
            {
                List<string> aux = new List<string>(dic[item].Count);

                foreach (var st in dic[item])
                    aux.Add(structures[st]);

                if (aux.Count > 3)
                {
                    juryOut = jury.JuryOptWeights(aux);
                    juryList.Add(dirName+Path.DirectorySeparatorChar+juryOut.juryLike[0].Key);
                }
                else
                    juryList.Add(dirName + Path.DirectorySeparatorChar + aux[0]);
            
            }
            Sift sift = new Sift();
            juryOut=sift.RunSift(juryList);
            //juryOut = jury.JuryOptWeights(juryList);

            return juryOut;
        }