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, wait
getIntensityValues, getMzValues
@Nonnull public Integer getNumberOfDataPoints()
getNumberOfDataPoints.
getNumberOfDataPoints
in interface MsSpectrum
Integer
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 MsSpectrum
public 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 MsSpectrum
public void setSpectrumType(@Nonnull MsSpectrumType spectrumType)
spectrumType
- a MsSpectrumType
object.@Nonnull public Float getTIC()
getTIC.
getTIC
in interface MsSpectrum
Float
object.public com.google.common.collect.Range<Double> getMzRange()
getMzRange
in interface MsSpectrum
public MzTolerance getMzTolerance()
getMzTolerance
in interface MsSpectrum
public void setMzTolerance(MzTolerance mzTolerance)
Setter for the field mzTolerance
.
mzTolerance
- a MzTolerance
object.Copyright © 2019. All rights reserved.