Skip to main content

AllanVarianceModel

Struct AllanVarianceModel 

Source
pub struct AllanVarianceModel {
    pub h_white: f32,
    pub h_flicker: f32,
    pub h_rw: f32,
    pub label_str: &'static str,
}
Expand description

Allan variance frequency-stability model for oscillator aging.

σ_y²(τ) = h₀/(2τ) + h₋₁·2·ln2 + h₋₂·(2π²/3)·τ

§Pre-defined Constants

  • OCXO_CLASS_A: Ultra-stable oven-controlled XO (h₀=1e-20, h₋₁=1e-22, h₋₂=1e-28)
  • TCXO_GRADE_B: Temperature-compensated XO (h₀=1e-18, h₋₁=1e-20, h₋₂=1e-26)

Fields§

§h_white: f32

White phase noise coefficient h₀.

§h_flicker: f32

Flicker phase noise coefficient h₋₁.

§h_rw: f32

Random walk FM noise coefficient h₋₂.

§label_str: &'static str

Human-readable identifier.

Implementations§

Source§

impl AllanVarianceModel

Source

pub const OCXO_CLASS_A: Self

Ultra-stable OCXO Class A oscillator (normalised residual-norm units).

h-coefficients scaled so σ_y(τ=1) ≈ 2.2×10⁻⁵ (detectable in f32).

Source

pub const TCXO_GRADE_B: Self

GPS-grade TCXO Grade B oscillator (normalised residual-norm units).

h-coefficients scaled so σ_y(τ=1) ≈ 2.2×10⁻⁴ (100× worse than OCXO).

Trait Implementations§

Source§

impl Clone for AllanVarianceModel

Source§

fn clone(&self) -> AllanVarianceModel

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AllanVarianceModel

Source§

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

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

impl PhysicsModel for AllanVarianceModel

Source§

fn predict_drift_rate(&self, tau: f32) -> f32

Averaging time τ [s] → Allan deviation σ_y(τ) = √AVAR(τ).

Source§

fn label(&self) -> &'static str

Short human-readable label for this model instance.
Source§

fn reference(&self) -> &'static str

Primary literature reference for the model.
Source§

fn maps_to_reason(&self) -> ReasonCode

The DSFB ReasonCode this model most directly corresponds to.
Source§

impl Copy for AllanVarianceModel

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, 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.