Struct mzsignal::peak::FittedPeak
source · pub struct FittedPeak {
pub mz: f64,
pub intensity: f32,
pub index: u32,
pub signal_to_noise: f32,
pub full_width_at_half_max: f32,
}
Expand description
A FittedPeak
implements the CentroidLike
trait
with an m/z coordinate, but also a shape attribute full_width_at_half_max
and a
intensity uncertainty, signal_to_noise_ratio
.
Fields§
§mz: f64
§intensity: f32
§index: u32
§signal_to_noise: f32
A measure of the difference between the intensity of this peak and the surrounding data
full_width_at_half_max: f32
A symmetric average peak shape parameter
Implementations§
Trait Implementations§
source§impl Clone for FittedPeak
impl Clone for FittedPeak
source§fn clone(&self) -> FittedPeak
fn clone(&self) -> FittedPeak
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CoordinateLike<MZ> for FittedPeak
impl CoordinateLike<MZ> for FittedPeak
source§fn coordinate(&self) -> f64
fn coordinate(&self) -> f64
The trait method for accessing the coordinate of the object on coordinate
system
T
source§impl CoordinateLikeMut<MZ> for FittedPeak
impl CoordinateLikeMut<MZ> for FittedPeak
fn coordinate_mut(&mut self) -> &mut f64
source§impl Debug for FittedPeak
impl Debug for FittedPeak
source§impl Default for FittedPeak
impl Default for FittedPeak
source§fn default() -> FittedPeak
fn default() -> FittedPeak
Returns the “default value” for a type. Read more
source§impl Display for FittedPeak
impl Display for FittedPeak
source§impl<'lifespan> From<&'lifespan FittedPeak> for PeakShapeModel<'lifespan>
impl<'lifespan> From<&'lifespan FittedPeak> for PeakShapeModel<'lifespan>
source§fn from(peak: &'lifespan FittedPeak) -> PeakShapeModel<'lifespan>
fn from(peak: &'lifespan FittedPeak) -> PeakShapeModel<'lifespan>
Converts to this type from the input type.
source§impl From<CentroidPeak> for FittedPeak
impl From<CentroidPeak> for FittedPeak
source§fn from(peak: CentroidPeak) -> Self
fn from(peak: CentroidPeak) -> Self
Converts to this type from the input type.
source§impl From<FittedPeak> for CentroidPeak
impl From<FittedPeak> for CentroidPeak
source§fn from(peak: FittedPeak) -> Self
fn from(peak: FittedPeak) -> Self
Converts to this type from the input type.
source§impl From<FittedPeak> for MZPoint
impl From<FittedPeak> for MZPoint
source§fn from(peak: FittedPeak) -> Self
fn from(peak: FittedPeak) -> Self
Converts to this type from the input type.
source§impl From<FittedPeak> for PeakShapeModel<'static>
impl From<FittedPeak> for PeakShapeModel<'static>
source§fn from(value: FittedPeak) -> Self
fn from(value: FittedPeak) -> Self
Converts to this type from the input type.
source§impl From<MZPoint> for FittedPeak
impl From<MZPoint> for FittedPeak
source§impl Hash for FittedPeak
impl Hash for FittedPeak
source§impl IndexedCoordinate<MZ> for FittedPeak
impl IndexedCoordinate<MZ> for FittedPeak
source§impl IntensityMeasurement for FittedPeak
impl IntensityMeasurement for FittedPeak
source§impl IntensityMeasurementMut for FittedPeak
impl IntensityMeasurementMut for FittedPeak
fn intensity_mut(&mut self) -> &mut f32
source§impl<T: CentroidLike> PartialEq<T> for FittedPeak
impl<T: CentroidLike> PartialEq<T> for FittedPeak
source§impl<T: CentroidLike> PartialOrd<T> for FittedPeak
impl<T: CentroidLike> PartialOrd<T> for FittedPeak
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FittedPeak
Auto Trait Implementations§
impl RefUnwindSafe for FittedPeak
impl Send for FittedPeak
impl Sync for FittedPeak
impl Unpin for FittedPeak
impl UnwindSafe for FittedPeak
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CentroidLike for T
impl<T> CentroidLike for T
fn as_centroid(&self) -> CentroidPeak
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.