pub struct UncertaintyConfig {
pub coverage_factor: f32,
pub type_b: [Option<TypeBContributor>; 8],
pub type_b_count: usize,
}Expand description
Configuration for the GUM uncertainty budget.
Fields§
§coverage_factor: f32Coverage factor k. Default 3.0 (99.7% confidence interval).
type_b: [Option<TypeBContributor>; 8]Type B systematic uncertainty contributors. Fixed-capacity array for no_alloc compatibility.
type_b_count: usizeNumber of populated Type B entries.
Implementations§
Source§impl UncertaintyConfig
impl UncertaintyConfig
Sourcepub fn typical_sdr() -> Self
pub fn typical_sdr() -> Self
Create a config with typical RF receiver Type B contributors.
Uses conservative estimates for common SDR receivers (USRP B200 class):
- Noise figure uncertainty: ±0.005 normalized norm units (~0.5 dB)
- ADC quantization: ±0.001 (14-bit ADC → Q ≈ 6e-5, Q/√12 ≈ 1.7e-5)
- Thermal gain drift: ±0.003 (0.02 dB/°C over ±10°C range)
Sourcepub fn add_type_b(&mut self, contrib: TypeBContributor) -> bool
pub fn add_type_b(&mut self, contrib: TypeBContributor) -> bool
Add a Type B contributor. Returns false if the array is full.
Trait Implementations§
Source§impl Clone for UncertaintyConfig
impl Clone for UncertaintyConfig
Source§fn clone(&self) -> UncertaintyConfig
fn clone(&self) -> UncertaintyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UncertaintyConfig
impl Debug for UncertaintyConfig
Auto Trait Implementations§
impl Freeze for UncertaintyConfig
impl RefUnwindSafe for UncertaintyConfig
impl Send for UncertaintyConfig
impl Sync for UncertaintyConfig
impl Unpin for UncertaintyConfig
impl UnsafeUnpin for UncertaintyConfig
impl UnwindSafe for UncertaintyConfig
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