Exemple #1
0
 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.");
     }
 }
Exemple #2
0
        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];
                    }
                }
            }
        }
Exemple #3
0
        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];
                    }
                }
            }
        }