com.compomics.util.experiment.massspectrometry
Class Peak

java.lang.Object
  extended by com.compomics.util.experiment.personalization.ExperimentObject
      extended by com.compomics.util.experiment.massspectrometry.Peak
All Implemented Interfaces:
Serializable, Cloneable

public class Peak
extends ExperimentObject

This class represents a peak. Created by IntelliJ IDEA. User: Marc Date: Jun 18, 2010 Time: 9:00:58 AM

See Also:
Serialized Form

Field Summary
 double intensity
          The intensity of the peak.
 double mz
          The mass over charge ratio of the peak.
 double rt
          The retention time when the peak was recorded.
 
Constructor Summary
Peak(double mz, double intensity)
          Constructor for a peak.
Peak(double mz, double intensity, double rt)
          Constructor for a peak.
 
Method Summary
 boolean isSameAs(Peak aPeak)
          Returns true if the peak has the same mz and intensity.
 
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, getUrParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mz

public double mz
The mass over charge ratio of the peak.


rt

public double rt
The retention time when the peak was recorded.


intensity

public double intensity
The intensity of the peak.

Constructor Detail

Peak

public Peak(double mz,
            double intensity)
Constructor for a peak.

Parameters:
mz - the mz value of the peak
intensity - the intensity of the peak

Peak

public Peak(double mz,
            double intensity,
            double rt)
Constructor for a peak.

Parameters:
mz - the mz value of the peak
intensity - the intensity of the peak
rt - the retention time when the peak was recorded
Method Detail

isSameAs

public boolean isSameAs(Peak aPeak)
Returns true if the peak has the same mz and intensity.

Parameters:
aPeak - the peal to compare this peak to
Returns:
true if the peak has the same mz and intensity


Copyright © 2011. All Rights Reserved.