public abstract class AbstractMsSpectrum extends Object implements MsSpectrum
| Constructor and Description |
|---|
AbstractMsSpectrum() |
| Modifier and Type | Method and Description |
|---|---|
float[] |
getIntensityValues(float[] array)
Returns the intensity values of this spectrum.
|
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()
getTIC.
|
void |
setDataPoints(double[] mzValues,
float[] intensityValues,
Integer size) |
void |
setMzTolerance(MzTolerance mzTolerance)
Setter for the field
mzTolerance. |
void |
setSpectrumType(MsSpectrumType spectrumType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIntensityValues, getMzValues@Nonnull public Integer getNumberOfDataPoints()
getNumberOfDataPoints.
getNumberOfDataPoints in interface MsSpectrumInteger object.@Nonnull public double[] getMzValues(@Nullable 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@Nonnull public float[] getIntensityValues(@Nullable 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 MsSpectrumpublic void setDataPoints(@Nonnull double[] mzValues, @Nonnull float[] intensityValues, @Nonnull Integer size)
mzValues - an array of double.intensityValues - an array of float.size - a Integer object.@Nonnull public MsSpectrumType getSpectrumType()
getSpectrumType in interface MsSpectrumpublic void setSpectrumType(@Nonnull MsSpectrumType spectrumType)
spectrumType - a MsSpectrumType object.@Nonnull public Float getTIC()
getTIC.
getTIC in interface MsSpectrumFloat object.public com.google.common.collect.Range<Double> getMzRange()
getMzRange in interface MsSpectrumpublic MzTolerance getMzTolerance()
getMzTolerance in interface MsSpectrumpublic void setMzTolerance(MzTolerance mzTolerance)
Setter for the field mzTolerance.
mzTolerance - a MzTolerance object.Copyright © 2019. All rights reserved.