예제 #1
0
        public int CalcRelevance(PlottingStatisticsID other, PlottingStatisticsIdRelevanceWeights weights)
        {
            var relevance = 0;

            relevance += PlotSizeRelevance(other) * weights.PlotSize;
            relevance += LogFolderRelevance(other) * weights.LogFolder;
            relevance += TmpDirRelevance(other) * weights.TmpDir;
            relevance += ComputeConfiguration(other) * weights.ComputeConfiguration;
            return(relevance);
        }
예제 #2
0
 public PlottingStatisticsHolder(List <PlotLog> plotLogs, PlottingStatisticsIdRelevanceWeights weights)
 {
     foreach (var plotLog in plotLogs)
     {
         if (plotLog.TotalSeconds > 0)
         {
             AllPlotLogs.Add(plotLog);
         }
     }
     this.weights = weights;
 }