pub struct DmaDataReader {
pub points: Vec<DmaPoint>,
pub reference_temperature_c: f64,
}Expand description
DMA frequency sweep reader.
Fields§
§points: Vec<DmaPoint>DMA data points.
reference_temperature_c: f64Reference temperature for master curve (°C).
Implementations§
Source§impl DmaDataReader
impl DmaDataReader
Sourcepub fn push(
&mut self,
frequency_hz: f64,
storage_modulus: f64,
loss_modulus: f64,
temperature_c: f64,
)
pub fn push( &mut self, frequency_hz: f64, storage_modulus: f64, loss_modulus: f64, temperature_c: f64, )
Append a data point.
Sourcepub fn from_csv(csv: &str, reference_temperature_c: f64) -> Result<Self, String>
pub fn from_csv(csv: &str, reference_temperature_c: f64) -> Result<Self, String>
Parse from CSV: frequency_hz,storage_modulus,loss_modulus,temperature_c rows.
Sourcepub fn mean_tan_delta(&self) -> f64
pub fn mean_tan_delta(&self) -> f64
Mean tan δ across all points.
Sourcepub fn max_storage_modulus(&self) -> f64
pub fn max_storage_modulus(&self) -> f64
Maximum storage modulus.
Sourcepub fn wlf_shift_factors(&self, c1: f64, c2: f64) -> Vec<ShiftFactor>
pub fn wlf_shift_factors(&self, c1: f64, c2: f64) -> Vec<ShiftFactor>
Compute WLF shift factors for master curve construction.
Uses the WLF equation: log(aT) = -C1*(T - Tref) / (C2 + T - Tref).
Sourcepub fn master_curve_storage(&self, c1: f64, c2: f64) -> Vec<(f64, f64)>
pub fn master_curve_storage(&self, c1: f64, c2: f64) -> Vec<(f64, f64)>
Build master curve: returns (log10(reduced_freq), E') pairs.
Trait Implementations§
Source§impl Clone for DmaDataReader
impl Clone for DmaDataReader
Source§fn clone(&self) -> DmaDataReader
fn clone(&self) -> DmaDataReader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DmaDataReader
impl RefUnwindSafe for DmaDataReader
impl Send for DmaDataReader
impl Sync for DmaDataReader
impl Unpin for DmaDataReader
impl UnsafeUnpin for DmaDataReader
impl UnwindSafe for DmaDataReader
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.