pub enum Observable {
Real,
Imaginary,
Amplitude,
Phase,
MagnitudeSquared,
Instant {
wt: f64,
},
}Expand description
A scalar view of a coherent complex field.
Variants§
Real
Cartesian real component.
Imaginary
Cartesian imaginary component.
Amplitude
Euclidean amplitude hypot(real, imaginary).
Phase
Wrapped phase in the half-open interval [-pi, pi).
Phase at or below the projection’s amplitude floor is represented by a masked sample rather than a number.
MagnitudeSquared
Normalized real * real + imaginary * imaginary energy proxy.
This is not physical intensity. Physical intensity requires a named field and medium impedance, which the scalar model does not carry.
Instant
Instantaneous field Re{U * exp(-i * wt)}.
Under the crate’s time convention this is
real * cos(wt) + imaginary * sin(wt). At wt == 0, projection
returns the real component directly so equality is bit-exact.
Trait Implementations§
Source§impl Clone for Observable
impl Clone for Observable
Source§fn clone(&self) -> Observable
fn clone(&self) -> Observable
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 Observable
Source§impl Debug for Observable
impl Debug for Observable
Source§impl PartialEq for Observable
impl PartialEq for Observable
impl StructuralPartialEq for Observable
Auto Trait Implementations§
impl Freeze for Observable
impl RefUnwindSafe for Observable
impl Send for Observable
impl Sync for Observable
impl Unpin for Observable
impl UnsafeUnpin for Observable
impl UnwindSafe for Observable
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