public int CompareTo(object obj) { if (obj is MSPoint) { MSPoint p2 = (MSPoint)obj; return(_mass.CompareTo(p2.Mass)); } else { throw new ArgumentException("Object is not a MSPoint."); } }
public LCPeak(float argStartTime, float argEndTime, List <MSPoint> argMSPs) { _startLCTime = argStartTime; _endLCTime = argEndTime; _lstMSPoints = argMSPs; //Find Apex in raw data if (_lstMSPoints.Count > 0) { _apex = new MSPoint(0.0f, 0.0f); for (int i = 0; i < _lstMSPoints.Count; i++) { _sumofIntensity = _sumofIntensity + _lstMSPoints[i].Intensity; if (_lstMSPoints[i].Intensity >= _apex.Intensity) { _apex = _lstMSPoints[i]; } } } }
public LCPeak(float argStartTime, float argEndTime, List<MSPoint> argMSPs) { _startLCTime = argStartTime; _endLCTime = argEndTime; _lstMSPoints = argMSPs; //Find Apex in raw data if (_lstMSPoints.Count > 0) { _apex = new MSPoint(0.0f,0.0f); for (int i = 0; i < _lstMSPoints.Count; i++) { _sumofIntensity = _sumofIntensity + _lstMSPoints[i].Intensity; if (_lstMSPoints[i].Intensity >= _apex.Intensity) { _apex = _lstMSPoints[i]; } } } }