Exemple #1
0
 /// <summary>
 ///     Sort the result list by the best SpecEValue
 /// </summary>
 public void Sort()
 {
     foreach (var sir in SpectrumIdentificationResults)
     {
         sir.Sort();
     }
     SpectrumIdentificationResults.Sort((a, b) =>
                                        a.BestSpecEVal().CompareTo(b.BestSpecEVal()));
 }
Exemple #2
0
        /// <summary>
        ///     Object hash code
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Name != null?Name.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ NumSequencesSearched.GetHashCode();
                hashCode = (hashCode * 397) ^ (FragmentationTables != null ? FragmentationTables.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (SpectrumIdentificationResults != null ? SpectrumIdentificationResults.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (CVParams != null ? CVParams.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (UserParams != null ? UserParams.GetHashCode() : 0);
                return(hashCode);
            }
        }