public class Peak extends ExperimentObject
Modifier and Type | Field and Description |
---|---|
static Comparator<Peak> |
AscendingIntensityComparator
This comparator compares two Peak instances on ascending intensity.
|
static Comparator<Peak> |
AscendingMzComparator
This comparator compares two Peak instances on ascending m/z value.
|
static Comparator<Peak> |
DescendingIntensityComparator
This comparator compares two Peak instances on descending intensity.
|
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 and Description |
---|
Peak(double mz,
double intensity)
Constructor for a peak.
|
Peak(double mz,
double intensity,
double rt)
Constructor for a peak.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getMass(int chargeValue)
Returns the mass of the compound with the given charge.
|
int |
hashCode() |
boolean |
isSameAs(Peak aPeak)
Returns true if the peak has the same mz and intensity.
|
String |
toString() |
addUrParam, asLong, clearParametersMap, getUrParam, getUrParams, removeUrParam, setUrParams
getFirstLevel, getId, setFirstLevel, setId
jdoZooEvict, jdoZooGetBackup, jdoZooGetClassDef, jdoZooGetContext, jdoZooGetNode, jdoZooGetOid, jdoZooGetTimestamp, jdoZooHasState, jdoZooInit, jdoZooIsDeleted, jdoZooIsDetached, jdoZooIsDirty, jdoZooIsNew, jdoZooIsPersistent, jdoZooIsStateHollow, jdoZooIsTransactional, jdoZooMarkClean, jdoZooMarkDeleted, jdoZooMarkDetached, jdoZooMarkDirty, jdoZooMarkHollow, jdoZooMarkTransient, jdoZooSetOid, jdoZooSetTimestamp, zooActivateRead, zooActivateWrite, zooActivateWrite
public final double mz
public final double rt
public final double intensity
public static final Comparator<Peak> AscendingIntensityComparator
public static final Comparator<Peak> DescendingIntensityComparator
public static final Comparator<Peak> AscendingMzComparator
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 recordedpublic boolean isSameAs(Peak aPeak)
aPeak
- the peal to compare this peak topublic double getMass(int chargeValue)
chargeValue
- the value of the chargepublic String toString()
toString
in class org.zoodb.api.impl.ZooPC
Copyright © 2018. All rights reserved.