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);
        }
Exemple #2
0
 public PlottingStatisticsHolder(List <PlotLog> plotLogs, PlottingStatisticsIdRelevanceWeights weights)
 {
     foreach (var plotLog in plotLogs)
     {
         if (plotLog.TotalSeconds > 0)
         {
             AllPlotLogs.Add(plotLog);
         }
     }
     this.weights = weights;
 }