예제 #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.");
     }
 }
예제 #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];
                    }
                }
            }
        }
예제 #3
0
파일: LCPeak.cs 프로젝트: chpaul/COL_Lib
        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];
                    }
                }
            }
        }