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