pub struct TofLeBailOptions {
pub cycles: usize,
pub redistribution_damping: f64,
pub initial_intensity_floor: f64,
pub minimum_calculated: f64,
pub support_fwhm: f64,
pub tail_log: f64,
pub use_uncertainty: bool,
pub redistribution_use_uncertainty: bool,
pub execution: ExecutionPolicy,
}Expand description
Deterministic fixed-instrument TOF extraction controls.
Fields§
§cycles: usizeNumber of nonnegative redistribution cycles.
redistribution_damping: f64Multiplicative update damping in (0, 1].
initial_intensity_floor: f64Positive floor used only to initialize an all-zero reflection list.
minimum_calculated: f64Minimum calculated profile accepted in an observed/calculated ratio.
support_fwhm: f64Symmetric TCH support radius in total-FWHM units.
tail_log: f64Exponential truncation exponent; each tail ends at exp(-tail_log).
use_uncertainty: boolUse supplied one-sigma uncertainties in background fitting and metrics.
redistribution_use_uncertainty: boolUse supplied one-sigma uncertainties in multiplicative redistribution.
This defaults to use_uncertainty but can be disabled independently
for GSAS-compatible unweighted Le Bail partitioning while retaining
uncertainty-weighted background fitting and residual metrics.
execution: ExecutionPolicyBounded execution policy passed to the fused core kernel.
Implementations§
Source§impl TofLeBailOptions
impl TofLeBailOptions
Sourcepub fn new(
cycles: usize,
redistribution_damping: f64,
initial_intensity_floor: f64,
minimum_calculated: f64,
support_fwhm: f64,
tail_log: f64,
use_uncertainty: bool,
execution: ExecutionPolicy,
) -> Result<Self, TofLeBailError>
pub fn new( cycles: usize, redistribution_damping: f64, initial_intensity_floor: f64, minimum_calculated: f64, support_fwhm: f64, tail_log: f64, use_uncertainty: bool, execution: ExecutionPolicy, ) -> Result<Self, TofLeBailError>
Construct validated extraction controls.
§Errors
Returns TofLeBailError for invalid numerical controls.
Sourcepub fn with_redistribution_uncertainty(self, enabled: bool) -> Self
pub fn with_redistribution_uncertainty(self, enabled: bool) -> Self
Select uncertainty weighting independently for intensity redistribution.
Sourcepub fn scripting_defaults(
execution: ExecutionPolicy,
) -> Result<Self, TofLeBailError>
pub fn scripting_defaults( execution: ExecutionPolicy, ) -> Result<Self, TofLeBailError>
Construct practical deterministic defaults.
§Errors
Returns TofLeBailError if the defaults cannot be validated.
Sourcepub fn validate(&self) -> Result<(), TofLeBailError>
pub fn validate(&self) -> Result<(), TofLeBailError>
Revalidate numerical controls.
§Errors
Returns TofLeBailError for zero, non-finite, or out-of-range values.
Trait Implementations§
Source§impl Clone for TofLeBailOptions
impl Clone for TofLeBailOptions
Source§fn clone(&self) -> TofLeBailOptions
fn clone(&self) -> TofLeBailOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TofLeBailOptions
impl Debug for TofLeBailOptions
Source§impl PartialEq for TofLeBailOptions
impl PartialEq for TofLeBailOptions
impl StructuralPartialEq for TofLeBailOptions
Auto Trait Implementations§
impl !RefUnwindSafe for TofLeBailOptions
impl !UnwindSafe for TofLeBailOptions
impl Freeze for TofLeBailOptions
impl Send for TofLeBailOptions
impl Sync for TofLeBailOptions
impl Unpin for TofLeBailOptions
impl UnsafeUnpin for TofLeBailOptions
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar 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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.