Skip to main content

SamplingCertificate

Struct SamplingCertificate 

Source
pub struct SamplingCertificate {
    pub thresholds: SamplingThresholds,
    pub wavelength_m: f64,
    pub samples_per_wavelength_u: f64,
    pub samples_per_wavelength_v: f64,
    pub samples_per_power_fringe_u: f64,
    pub samples_per_power_fringe_v: f64,
    pub nearest_point_source_distance_m: Option<f64>,
    pub max_envelope_fraction_per_cell: f64,
    pub verdict: SamplingVerdict,
}
Expand description

Measurements explaining whether a problem is resolved by a sampling plane.

Coherent squared magnitude can contain a worst-case fringe period of wavelength / 2, so its samples-per-period values are half the carrier samples-per-wavelength values. For point sources, the envelope bound covers one complete cell diagonal relative to the nearest point on the finite plane. A source touching that plane is rejected because no finite 1/r envelope certificate exists.

Fields§

§thresholds: SamplingThresholds

Explicit thresholds used for this classification.

§wavelength_m: f64

Unattenuated carrier wavelength.

§samples_per_wavelength_u: f64

Carrier samples per wavelength along the plane’s u axis.

§samples_per_wavelength_v: f64

Carrier samples per wavelength along the plane’s v axis.

§samples_per_power_fringe_u: f64

Samples per worst-case squared-magnitude fringe along u.

§samples_per_power_fringe_v: f64

Samples per worst-case squared-magnitude fringe along v.

§nearest_point_source_distance_m: Option<f64>

Distance from a point source to the nearest point on the finite plane.

This is None when the problem has no point source.

§max_envelope_fraction_per_cell: f64

Conservative maximum fractional 1/r change across one cell.

§verdict: SamplingVerdict

Classification obtained from every preceding measurement.

Implementations§

Source§

impl SamplingCertificate

Source

pub fn measure( problem: &InterferenceProblem, plane: &SamplingPlane, ) -> Result<Self, InterferenceError>

Measures phase, worst-case power fringes, and point-source envelope.

This performs only constant storage work and iterates over sources; it does not allocate a grid.

Source

pub fn measure_with_thresholds( problem: &InterferenceProblem, plane: &SamplingPlane, thresholds: SamplingThresholds, ) -> Result<Self, InterferenceError>

Measures using caller-supplied, validated classification thresholds.

Trait Implementations§

Source§

impl Clone for SamplingCertificate

Source§

fn clone(&self) -> SamplingCertificate

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SamplingCertificate

Source§

impl Debug for SamplingCertificate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SamplingCertificate

Source§

fn eq(&self, other: &SamplingCertificate) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SamplingCertificate

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.