pub struct SamplingThresholds {
pub resolved_min_samples_per_wavelength: f64,
pub marginal_min_samples_per_wavelength: f64,
pub resolved_max_envelope_fraction_per_cell: f64,
pub marginal_max_envelope_fraction_per_cell: f64,
}Expand description
Explicit thresholds used to classify a SamplingCertificate.
The default resolved carrier requirement is eight samples per wavelength,
which gives four samples across the worst-case half-wavelength power
fringe. Four carrier samples (two per power fringe) is the marginal Nyquist
floor. Point-source 1/r envelope change defaults to five percent for
resolved and ten percent for marginal.
Fields§
§resolved_min_samples_per_wavelength: f64Comfortable carrier samples per wavelength on both axes.
marginal_min_samples_per_wavelength: f64Marginal carrier samples per wavelength on both axes.
resolved_max_envelope_fraction_per_cell: f64Comfortable maximum fractional 1/r change across a cell.
marginal_max_envelope_fraction_per_cell: f64Marginal maximum fractional 1/r change across a cell.
Implementations§
Source§impl SamplingThresholds
impl SamplingThresholds
Sourcepub fn new(
resolved_min_samples_per_wavelength: f64,
marginal_min_samples_per_wavelength: f64,
resolved_max_envelope_fraction_per_cell: f64,
marginal_max_envelope_fraction_per_cell: f64,
) -> Result<Self, InterferenceError>
pub fn new( resolved_min_samples_per_wavelength: f64, marginal_min_samples_per_wavelength: f64, resolved_max_envelope_fraction_per_cell: f64, marginal_max_envelope_fraction_per_cell: f64, ) -> Result<Self, InterferenceError>
Validates explicit resolved and marginal classification thresholds.
Sourcepub fn validate(self) -> Result<Self, InterferenceError>
pub fn validate(self) -> Result<Self, InterferenceError>
Revalidates a threshold record, including one built with field syntax.
Trait Implementations§
Source§impl Clone for SamplingThresholds
impl Clone for SamplingThresholds
Source§fn clone(&self) -> SamplingThresholds
fn clone(&self) -> SamplingThresholds
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 moreimpl Copy for SamplingThresholds
Source§impl Debug for SamplingThresholds
impl Debug for SamplingThresholds
Source§impl Default for SamplingThresholds
impl Default for SamplingThresholds
Source§impl PartialEq for SamplingThresholds
impl PartialEq for SamplingThresholds
impl StructuralPartialEq for SamplingThresholds
Auto Trait Implementations§
impl Freeze for SamplingThresholds
impl RefUnwindSafe for SamplingThresholds
impl Send for SamplingThresholds
impl Sync for SamplingThresholds
impl Unpin for SamplingThresholds
impl UnsafeUnpin for SamplingThresholds
impl UnwindSafe for SamplingThresholds
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