public class Peak extends Object implements Cloneable, Comparable<Peak>
Modifier and Type | Field and Description |
---|---|
protected float |
intensity
The intensity.
|
static Comparator<Peak> |
intensityComp
The intensity comp.
|
protected ILcContext |
lcContext
The peak context.
|
protected float |
leftHwhm
The left hwhm.
|
protected double |
mz
The mz.
|
protected float |
rightHwhm
The right hwhm.
|
Constructor and Description |
---|
Peak(double mz,
float intensity)
Instantiates a new peak.
|
Peak(double mz,
float intensity,
float leftHwhm,
float rightHwhm,
ILcContext lcContext)
Instantiates a new peak.
|
Modifier and Type | Method and Description |
---|---|
protected Peak |
clone() |
int |
compareTo(Peak aPeak) |
float |
getIntensity()
Gets the intensity.
|
static Comparator<Peak> |
getIntensityComp()
Gets the intensity comp.
|
ILcContext |
getLcContext()
Gets the lc context.
|
float |
getLeftHwhm()
Gets the left hwhm.
|
double |
getMz()
Gets the mz.
|
float |
getRightHwhm()
Gets the right hwhm.
|
SpectrumHeader |
getSpectrumHeader()
Gets the SpectrumHeader.
|
boolean |
isNormalized() |
void |
normalizeIntensity(float nf) |
void |
setLcContext(ILcContext lcContext)
Sets the lc context.
|
String |
toString() |
protected final double mz
protected float intensity
protected final float leftHwhm
protected final float rightHwhm
protected ILcContext lcContext
public static Comparator<Peak> intensityComp
public Peak(double mz, float intensity, float leftHwhm, float rightHwhm, ILcContext lcContext)
mz
- the mzintensity
- the intensityleftHwhm
- the left hwhmrightHwhm
- the right hwhmlcContext
- the LC contextpublic Peak(double mz, float intensity)
mz
- peak's massintensity
- peak's intensitypublic double getMz()
public float getIntensity()
public float getLeftHwhm()
public float getRightHwhm()
public ILcContext getLcContext()
public void setLcContext(ILcContext lcContext)
lcContext
- the new lc contextpublic SpectrumHeader getSpectrumHeader() throws ClassCastException
ClassCastException
public boolean isNormalized()
public static Comparator<Peak> getIntensityComp()
public int compareTo(Peak aPeak)
compareTo
in interface Comparable<Peak>
Copyright © 2019. All rights reserved.