예제 #1
0
        /// <summary>
        /// 获取筛选后的谱图列表。
        /// </summary>
        /// <returns></returns>
        public List <IIdentifiedSpectrum> GetOptimalSpectra()
        {
            List <IIdentifiedSpectrum> result = new List <IIdentifiedSpectrum>();

            OptimalResults.ForEach(m => result.AddRange(m.Spectra));

            return(result);
        }
예제 #2
0
        public void CalculateToleranceScore()
        {
            var scoreFunc = this.Options.ScoreFunction;

            OptimalResults.ForEach(m => m.CalculateToleranceScore(scoreFunc));
        }
예제 #3
0
 public void KeepOptimalResultInSetOnly(HashSet <IIdentifiedSpectrum> spectra)
 {
     OptimalResults.ForEach(m => m.KeepOptimalResultInSetOnly(spectra));
     CalculateToleranceScore();
 }