pub struct BinaryArrayMap3D {
pub ion_mobility_dimension: Vec<f64>,
pub ion_mobility_type: ArrayType,
pub ion_mobility_unit: Unit,
pub arrays: Vec<BinaryArrayMap>,
pub additional_arrays: BinaryArrayMap,
/* private fields */
}
Expand description
Represent a set of BinaryArrayMap
that has been split across the
ion mobility dimension.
Fields§
§ion_mobility_dimension: Vec<f64>
§ion_mobility_type: ArrayType
§ion_mobility_unit: Unit
§arrays: Vec<BinaryArrayMap>
§additional_arrays: BinaryArrayMap
Implementations§
Source§impl BinaryArrayMap3D
impl BinaryArrayMap3D
pub fn from_ion_mobility_dimension( ion_mobility_dimension: Vec<f64>, ion_mobility_type: ArrayType, ion_mobility_unit: Unit, ) -> BinaryArrayMap3D
pub fn from_ion_mobility_dimension_and_arrays( ion_mobility_dimension: Vec<f64>, ion_mobility_type: ArrayType, ion_mobility_unit: Unit, arrays: Vec<BinaryArrayMap>, ) -> BinaryArrayMap3D
Sourcepub fn get_ion_mobility(&self, ion_mobility: f64) -> Option<&BinaryArrayMap>
pub fn get_ion_mobility(&self, ion_mobility: f64) -> Option<&BinaryArrayMap>
Get the associated arrays at the requested ion mobility, if they exist
pub fn search_ion_mobility( &self, ion_mobility: f64, error_tolerance: f64, ) -> Option<(&BinaryArrayMap, f64)>
Sourcepub fn get_ion_mobility_mut(
&mut self,
ion_mobility: f64,
) -> Option<&mut BinaryArrayMap>
pub fn get_ion_mobility_mut( &mut self, ion_mobility: f64, ) -> Option<&mut BinaryArrayMap>
Get the a mutable reference to the associated arrays at the requested ion mobility, if they exist
Sourcepub fn iter(&self) -> impl Iterator<Item = (f64, &BinaryArrayMap)>
pub fn iter(&self) -> impl Iterator<Item = (f64, &BinaryArrayMap)>
Iterate over the ion mobility dimension and associated arrays at each point.
Sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = (f64, &mut BinaryArrayMap)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (f64, &mut BinaryArrayMap)>
Iterate over the ion mobility dimension and a mutable reference to the associated arrays at each point.
Sourcepub fn unstack(&self) -> Result<BinaryArrayMap, ArrayRetrievalError>
pub fn unstack(&self) -> Result<BinaryArrayMap, ArrayRetrievalError>
Flatten this array into a single BinaryArrayMap
.
§Errors
ArrayRetrievalError
errors related to array decoding occur if
any DataArray
cannot be decoded, or if an expected array is absent.
Sourcepub fn stack(
source: &BinaryArrayMap,
) -> Result<BinaryArrayMap3D, ArrayRetrievalError>
pub fn stack( source: &BinaryArrayMap, ) -> Result<BinaryArrayMap3D, ArrayRetrievalError>
Convert a BinaryArrayMap
into a BinaryArrayMap3D
if it has an ion mobility dimension.
Any arrays that aren’t the same length as the ion mobility dimension will be in
BinaryArrayMap3D::additional_arrays
.
§Errors
ArrayRetrievalError
errors related to array decoding occur if any DataArray
cannot be decoded, or if an expected array is absent.
Trait Implementations§
Source§impl Clone for BinaryArrayMap3D
impl Clone for BinaryArrayMap3D
Source§fn clone(&self) -> BinaryArrayMap3D
fn clone(&self) -> BinaryArrayMap3D
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more