pub struct Telescope {
pub filename: String,
pub pressure: Vec<f64>,
pub area_ijk: Vec<[f64; 3]>,
pub xyz: Vec<[f64; 3]>,
}Expand description
Telescope mount surface pressure
Fields§
§filename: String§pressure: Vec<f64>§area_ijk: Vec<[f64; 3]>§xyz: Vec<[f64; 3]>Implementations§
Source§impl Telescope
impl Telescope
Sourcepub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, PressureError>
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, PressureError>
Loads the pressure data
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn pressure_iter(&self) -> impl Iterator<Item = &f64>
pub fn pressure_iter(&self) -> impl Iterator<Item = &f64>
Ierator over pressure
Sourcepub fn mean_pressure(&self) -> f64
pub fn mean_pressure(&self) -> f64
Returns the mean pressure
Sourcepub fn median_pressure(&self) -> Option<f64>
pub fn median_pressure(&self) -> Option<f64>
Returns the median pressure
Sourcepub fn minmax_pressure(&self) -> Option<(f64, f64)>
pub fn minmax_pressure(&self) -> Option<(f64, f64)>
Returns the pressure minimum and maximum
Sourcepub fn area_ijk_iter(&self) -> impl Iterator<Item = &[f64; 3]>
pub fn area_ijk_iter(&self) -> impl Iterator<Item = &[f64; 3]>
Iterator over pressure area projected onto normal to the surface a mode location
Sourcepub fn xyz_iter(&self) -> impl Iterator<Item = &[f64; 3]>
pub fn xyz_iter(&self) -> impl Iterator<Item = &[f64; 3]>
Iterator over pressure node coordinates
Sourcepub fn x_iter(&self) -> impl Iterator<Item = f64> + '_
pub fn x_iter(&self) -> impl Iterator<Item = f64> + '_
Iterator over pressure node x coordinates
Sourcepub fn y_iter(&self) -> impl Iterator<Item = f64> + '_
pub fn y_iter(&self) -> impl Iterator<Item = f64> + '_
Iterator over pressure node y coordinates
Sourcepub fn z_iter(&self) -> impl Iterator<Item = f64> + '_
pub fn z_iter(&self) -> impl Iterator<Item = f64> + '_
Iterator over pressure node z coordinates
Sourcepub fn total_area(&self) -> f64
pub fn total_area(&self) -> f64
Returns the total area
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Telescope
impl RefUnwindSafe for Telescope
impl Send for Telescope
impl Sync for Telescope
impl Unpin for Telescope
impl UnwindSafe for Telescope
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.