pub struct LeBailOptions {Show 15 fields
pub max_iterations: usize,
pub min_iterations: usize,
pub intensity_tolerance: f64,
pub rwp_tolerance: f64,
pub redistribution_damping: f64,
pub minimum_calculated: f64,
pub initial_intensity_floor: f64,
pub use_uncertainty: bool,
pub profile_damping: f64,
pub max_scaled_parameter_step: f64,
pub max_profile_backtracks: usize,
pub unresolved_correlation: f64,
pub diagnose_rank_deficiency: bool,
pub support_fwhm: f64,
pub execution: ExecutionPolicy,
}Expand description
Deterministic controls for fixed-reflection extraction.
Fields§
§max_iterations: usizeMaximum accepted iterations.
min_iterations: usizeMinimum accepted iterations before convergence.
intensity_tolerance: f64Maximum relative integrated-intensity change for convergence.
rwp_tolerance: f64Absolute Rwp change for convergence.
redistribution_damping: f64Multiplicative redistribution damping in (0, 1].
minimum_calculated: f64Minimum calculated profile accepted in the observed/calculated ratio.
initial_intensity_floor: f64Positive starting and relative-change denominator floor.
use_uncertainty: boolWhether supplied one-sigma uncertainty is used.
profile_damping: f64Non-negative diagonal regularization for profile normal equations.
max_scaled_parameter_step: f64Maximum absolute free-parameter step in scaled coordinates.
max_profile_backtracks: usizeNumber of profile-step halvings after the initial candidate.
unresolved_correlation: f64Correlation threshold used by optional unresolved-group diagnostics.
diagnose_rank_deficiency: boolWhether coincident reflection rank diagnostics are calculated.
support_fwhm: f64Finite profile support in FWHM units.
execution: ExecutionPolicyPersistent bounded native worker policy.
Implementations§
Source§impl LeBailOptions
impl LeBailOptions
Sourcepub fn new(
max_iterations: usize,
min_iterations: usize,
intensity_tolerance: f64,
rwp_tolerance: f64,
redistribution_damping: f64,
minimum_calculated: f64,
initial_intensity_floor: f64,
use_uncertainty: bool,
unresolved_correlation: f64,
diagnose_rank_deficiency: bool,
support_fwhm: f64,
execution: ExecutionPolicy,
) -> Result<Self, LeBailError>
pub fn new( max_iterations: usize, min_iterations: usize, intensity_tolerance: f64, rwp_tolerance: f64, redistribution_damping: f64, minimum_calculated: f64, initial_intensity_floor: f64, use_uncertainty: bool, unresolved_correlation: f64, diagnose_rank_deficiency: bool, support_fwhm: f64, execution: ExecutionPolicy, ) -> Result<Self, LeBailError>
Validate all convergence and execution controls.
§Errors
Returns LeBailError::InvalidOptions for an invalid control.
Sourcepub fn with_profile_controls(
self,
profile_damping: f64,
max_scaled_parameter_step: f64,
max_profile_backtracks: usize,
) -> Result<Self, LeBailError>
pub fn with_profile_controls( self, profile_damping: f64, max_scaled_parameter_step: f64, max_profile_backtracks: usize, ) -> Result<Self, LeBailError>
Replace the native profile-solver controls after validation.
§Errors
Returns LeBailError for invalid damping or step controls.
Sourcepub fn scripting_defaults(
execution: ExecutionPolicy,
) -> Result<Self, LeBailError>
pub fn scripting_defaults( execution: ExecutionPolicy, ) -> Result<Self, LeBailError>
Construct the scripting-compatible defaults with an explicit policy.
§Errors
Returns LeBailError if the controls cannot be constructed.
Trait Implementations§
Source§impl Clone for LeBailOptions
impl Clone for LeBailOptions
Source§fn clone(&self) -> LeBailOptions
fn clone(&self) -> LeBailOptions
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 LeBailOptions
impl Debug for LeBailOptions
Source§impl PartialEq for LeBailOptions
impl PartialEq for LeBailOptions
impl StructuralPartialEq for LeBailOptions
Auto Trait Implementations§
impl !RefUnwindSafe for LeBailOptions
impl !UnwindSafe for LeBailOptions
impl Freeze for LeBailOptions
impl Send for LeBailOptions
impl Sync for LeBailOptions
impl Unpin for LeBailOptions
impl UnsafeUnpin for LeBailOptions
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.