/// <summary> /// Remove all SpectrumIdentificationItems that have a specEValue greater than the best specEValue in the list. /// </summary> public void RemoveMatchesNotBestSpecEValue() { ReRankBySpecEValue(); var best = SpectrumIdentificationItems.First().GetSpecEValue(); SpectrumIdentificationItems.RemoveAll(item => item.GetSpecEValue() > best); }
/// <summary> /// The lowest specEvalue in the SpectrumIdentificationItems /// </summary> /// <returns></returns> public double BestSpecEVal() { Sort(); return(SpectrumIdentificationItems.First().GetSpecEValue()); }