|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.massspectrometry.Peak
public class Peak
This class represents a peak.
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 | |
---|---|
int |
compareTo(Peak p)
Compare two peaks in regards to their intensity. |
boolean |
equals(Object obj)
|
double |
getIntensity()
Returns the intensity. |
double |
getMz()
Returns the mz. |
int |
hashCode()
|
boolean |
isSameAs(Peak aPeak)
Returns true if the peak has the same mz and intensity. |
void |
setIntensity(double intensity)
Set the intensity. |
void |
setMz(double mz)
Set the mz. |
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject |
---|
addUrParam, getParameterKey, getUrParam |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double mz
public double rt
public double intensity
Constructor Detail |
---|
public Peak(double mz, double intensity)
mz
- the mz value of the peakintensity
- the intensity of the peakpublic Peak(double mz, double intensity, double rt)
mz
- the mz value of the peakintensity
- the intensity of the peakrt
- the retention time when the peak was recordedMethod Detail |
---|
public boolean isSameAs(Peak aPeak)
aPeak
- the peal to compare this peak to
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public double getMz()
public void setMz(double mz)
mz
- the value to setpublic double getIntensity()
public void setIntensity(double intensity)
intensity
- the intensity to setpublic int compareTo(Peak p)
p
- the peak to compare against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |