public class PeakInvestigatorMsSpectrum extends Object implements MsSpectrum
Modifier and Type | Class and Description |
---|---|
static class |
PeakInvestigatorMsSpectrum.Error |
Constructor and Description |
---|
PeakInvestigatorMsSpectrum(MsSpectrum spectrum,
TreeMap<Double,PeakInvestigatorMsSpectrum.Error> errors)
Constructor for PeakInvestigatorMsSpectrum.
|
Modifier and Type | Method and Description |
---|---|
PeakInvestigatorMsSpectrum.Error |
getError(Double mzValue)
getError.
|
float[] |
getIntensityValues(float[] array)
Returns the intensity values of this spectrum.
|
double |
getMultiplier()
Getter for the field
multiplier . |
com.google.common.collect.Range<Double> |
getMzRange()
Returns the range of m/z values for the current spectrum.
|
MzTolerance |
getMzTolerance()
Returns an object that implements the MzTolerance interface.
|
double[] |
getMzValues(double[] array)
Returns the m/z values of this spectrum.
|
Integer |
getNumberOfDataPoints()
getNumberOfDataPoints.
|
MsSpectrumType |
getSpectrumType()
Returns the type of this mass spectrum.
|
Float |
getTIC()
Returns the sum of intensities of all data points (total ion current or TIC).
|
com.google.common.collect.Range<Double> |
getToleranceRange(Double mzValue)
getToleranceRange.
|
void |
setMultiplier(double multiplier)
Setter for the field
multiplier . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntensityValues, getMzValues
public PeakInvestigatorMsSpectrum(MsSpectrum spectrum, TreeMap<Double,PeakInvestigatorMsSpectrum.Error> errors)
Constructor for PeakInvestigatorMsSpectrum.
spectrum
- a MsSpectrum
object.errors
- a TreeMap
object.public double getMultiplier()
Getter for the field multiplier
.
public void setMultiplier(double multiplier)
Setter for the field multiplier
.
multiplier
- a double.public MsSpectrumType getSpectrumType()
getSpectrumType
in interface MsSpectrum
public Integer getNumberOfDataPoints()
getNumberOfDataPoints.
getNumberOfDataPoints
in interface MsSpectrum
Integer
object.public double[] getMzValues(double[] array)
Returns the m/z values of this spectrum. Note: this method may need to read data from disk, therefore it may be quite slow.
getMzValues
in interface MsSpectrum
public float[] getIntensityValues(float[] array)
Returns the intensity values of this spectrum. Note: this method may need to read data from disk, therefore it may be quite slow.
getIntensityValues
in interface MsSpectrum
public Float getTIC()
getTIC
in interface MsSpectrum
public com.google.common.collect.Range<Double> getMzRange()
getMzRange
in interface MsSpectrum
public com.google.common.collect.Range<Double> getToleranceRange(Double mzValue)
getToleranceRange.
mzValue
- a Double
object.Range
object.public PeakInvestigatorMsSpectrum.Error getError(Double mzValue)
getError.
mzValue
- a Double
object.PeakInvestigatorMsSpectrum.Error
object.public MzTolerance getMzTolerance()
getMzTolerance
in interface MsSpectrum
Copyright © 2019. All rights reserved.