pub struct TofProfileParameters {Show 17 fields
pub position_us: f64,
pub alpha_per_us: f64,
pub beta_per_us: f64,
pub gaussian_variance_us2: f64,
pub gaussian_fwhm_us: f64,
pub lorentzian_fwhm_us: f64,
pub tch: TchShape,
pub d_position_d_d: f64,
pub d_alpha_d_d: f64,
pub d_beta_d_d: f64,
pub d_gaussian_fwhm_d_d: f64,
pub d_lorentzian_fwhm_d_d: f64,
pub d_position_d_instrument: [f64; 15],
pub d_alpha_d_instrument: [f64; 15],
pub d_beta_d_instrument: [f64; 15],
pub d_gaussian_fwhm_d_instrument: [f64; 15],
pub d_lorentzian_fwhm_d_instrument: [f64; 15],
}Expand description
Derived TOF position, widths, exponential rates, and analytical chains.
Fields§
§position_us: f64Calibrated position in microseconds.
alpha_per_us: f64Leading-edge exponential rate in inverse microseconds.
beta_per_us: f64Trailing-edge exponential rate in inverse microseconds.
gaussian_variance_us2: f64Gaussian variance in microseconds squared.
gaussian_fwhm_us: f64Gaussian component FWHM in microseconds.
lorentzian_fwhm_us: f64Lorentzian component FWHM in microseconds.
tch: TchShapeTCH transform of the component widths.
d_position_d_d: f64Direct-input derivatives with respect to d-spacing.
d_alpha_d_d: f64Alpha-rate derivative with respect to d-spacing.
d_beta_d_d: f64Beta-rate derivative with respect to d-spacing.
d_gaussian_fwhm_d_d: f64Gaussian-FWHM derivative with respect to d-spacing.
d_lorentzian_fwhm_d_d: f64Lorentzian-FWHM derivative with respect to d-spacing.
d_position_d_instrument: [f64; 15]Parameter-major chains in TOF_GLOBAL_PARAMETER_COUNT order.
d_alpha_d_instrument: [f64; 15]Alpha-rate chains in global instrument order.
d_beta_d_instrument: [f64; 15]Beta-rate chains in global instrument order.
d_gaussian_fwhm_d_instrument: [f64; 15]Gaussian-FWHM chains in global instrument order.
d_lorentzian_fwhm_d_instrument: [f64; 15]Lorentzian-FWHM chains in global instrument order.
Implementations§
Source§impl TofProfileParameters
impl TofProfileParameters
Sourcepub fn from_instrument(
d: f64,
instrument: TofInstrument,
) -> Result<Self, TofError>
pub fn from_instrument( d: f64, instrument: TofInstrument, ) -> Result<Self, TofError>
Trait Implementations§
Source§impl Clone for TofProfileParameters
impl Clone for TofProfileParameters
Source§fn clone(&self) -> TofProfileParameters
fn clone(&self) -> TofProfileParameters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TofProfileParameters
Source§impl Debug for TofProfileParameters
impl Debug for TofProfileParameters
Source§impl PartialEq for TofProfileParameters
impl PartialEq for TofProfileParameters
impl StructuralPartialEq for TofProfileParameters
Auto Trait Implementations§
impl Freeze for TofProfileParameters
impl RefUnwindSafe for TofProfileParameters
impl Send for TofProfileParameters
impl Sync for TofProfileParameters
impl Unpin for TofProfileParameters
impl UnsafeUnpin for TofProfileParameters
impl UnwindSafe for TofProfileParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 more