/// <summary> /// The more likely than. /// </summary> /// <param name="a"> /// The a. /// </param> /// <param name="b"> /// The b. /// </param> /// <param name="likelihoodFunc"> /// The likelyhood func. /// </param> /// <returns> /// The <see cref="bool"/>. /// </returns> public static bool MoreLikelyThanUntargeted(ObservedPeak a, ObservedPeak b, LikelihoodFunc likelihoodFunc) { int result = CompareFeatureScore(a.Statistics, b.Statistics, likelihoodFunc); return result > 0; }
/// <summary> /// The compare feature input. /// </summary> /// <param name="a"> /// The a. /// </param> /// <param name="b"> /// The b. /// </param> /// <param name="likelihoodFunc"> /// The likelihood Func. /// </param> /// <returns> /// The <see cref="int"/>. /// </returns> private static int CompareFeatureScore(PeakScores a, PeakScores b, LikelihoodFunc likelihoodFunc) { return likelihoodFunc(a).CompareTo(likelihoodFunc(b)); }
/// <summary> /// The more likely than targeted. /// </summary> /// <param name="a"> /// The a. /// </param> /// <param name="b"> /// The b. /// </param> /// <param name="likelihoodFunc"> /// The likelihood func. /// </param> /// <param name="target"> /// The target. /// </param> /// <returns> /// The <see cref="bool"/>. /// </returns> /// <exception cref="NotImplementedException"> /// </exception> public static bool MoreLikelyThanTargeted(ObservedPeak a, ObservedPeak b, LikelihoodFunc likelihoodFunc, IImsTarget target) { throw new NotImplementedException(); }