public class ConstantPpmTolerance extends Object implements MzTolerance
ConstantPpmTolerance class.
Constructor and Description |
---|
ConstantPpmTolerance(Double tolerancePPM)
Constructor for ConstantPpmTolerance.
|
Modifier and Type | Method and Description |
---|---|
Double |
getPpmTolerance()
Getter for the field
ppmTolerance . |
com.google.common.collect.Range<Double> |
getToleranceRange(Double mzValue)
Get a m/z tolerance range for a given m/z.
|
String |
toString() |
@Nonnull public Double getPpmTolerance()
Getter for the field ppmTolerance
.
Double
object.@Nonnull public com.google.common.collect.Range<Double> getToleranceRange(@Nonnull Double mzValue)
Get a m/z tolerance range for a given m/z.
Return the mass tolerance range that is constant in ppm, but changes vs. m/z.
getToleranceRange
in interface MzTolerance
mzValue
- a Double
object.Range
object.Copyright © 2019. All rights reserved.