public abstract class AbstractSpectrum extends Object implements ISpectrum, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected double |
maxInt |
protected double |
maxIntMz |
protected double |
maxMZ |
protected double |
minInt |
protected double |
minIntNonZero |
protected double |
minMZ |
protected double |
sumInt |
| Constructor and Description |
|---|
AbstractSpectrum() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
findClosestMzIdx(double mz) |
Integer |
findMzIdxCeiling(double mz)
Finds the idx of MZ that is equal or greater than the provided one.
|
Integer |
findMzIdxFloor(double mz)
Finds the idx of MZ that is equal or less than the provided one.
|
int[] |
findMzIdxsWithinPpm(double mz,
double ppm)
Finds indexes of MZs that are within a PPM tolerance window (inclusive)
|
double |
getMaxInt()
The highest intensity in the spectrumRef.
|
double |
getMaxIntMz()
The m/z value of the basepeak (i.e.
|
double |
getMaxMZ()
The highest m/z value in the spectrumRef.
|
double |
getMinInt()
The minimum intensity in the spectrumRef.
|
double |
getMinIntNonZero()
The minimum intensity in the spectrumRef, but greater than zero.
|
double |
getMinMZ()
The lowest m/z value in the spectrumRef.
|
double |
getSumInt()
The sum of all intensities.
|
protected void |
setMaxInt(double maxInt) |
void |
setMaxIntMz(double maxIntMz) |
protected void |
setMaxMZ(double maxMZ) |
protected void |
setMinInt(double minInt) |
void |
setMinIntNonZero(double minIntNonZero) |
protected void |
setMinMZ(double minMZ) |
protected void |
setSumInt(double sumInt) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindMzIdxs, getIntensities, getMZsprotected double minMZ
protected double maxMZ
protected double minInt
protected double minIntNonZero
protected double maxInt
protected double maxIntMz
protected double sumInt
public double getMinMZ()
ISpectrumpublic double getMaxMZ()
ISpectrumpublic double getMinInt()
ISpectrumpublic double getMinIntNonZero()
ISpectrumgetMinIntNonZero in interface ISpectrumpublic double getMaxInt()
ISpectrumpublic double getMaxIntMz()
ISpectrumgetMaxIntMz in interface ISpectrumpublic double getSumInt()
ISpectrumprotected void setMinMZ(double minMZ)
protected void setMaxMZ(double maxMZ)
protected void setMinInt(double minInt)
public void setMinIntNonZero(double minIntNonZero)
protected void setMaxInt(double maxInt)
public void setMaxIntMz(double maxIntMz)
protected void setSumInt(double sumInt)
public Integer findMzIdxCeiling(double mz)
ISpectrumfindMzIdxCeiling in interface ISpectrumpublic Integer findMzIdxFloor(double mz)
ISpectrumfindMzIdxFloor in interface ISpectrumpublic Integer findClosestMzIdx(double mz)
findClosestMzIdx in interface ISpectrumpublic int[] findMzIdxsWithinPpm(double mz,
double ppm)
ISpectrumfindMzIdxsWithinPpm in interface ISpectrumppm - in PPMCopyright © 2017. All rights reserved.