public static double ModifiedSteinScott(Ms1Feature M, Ms1Feature N) { double E = M.Ms2Sum * N.Ms2Sum / (M.BinnedMs2Intensities.Count() * N.BinnedMs2Intensities.Count()); double score = (DotProduct(M.BinnedMs2Intensities, N.BinnedMs2Intensities) - E) / (Math.Sqrt(M.Ms2SelfDotProduct * N.Ms2SelfDotProduct)); if (Double.IsNaN(score)) { return(0); } else { return(score); } }
public void AddFeature(Ms1Feature feature) { }