pub enum Moments {
Isotropic,
Cone {
theta0: f64,
},
Polarized {
mz: f64,
},
}Expand description
Distribution of classical unit moments, axisymmetric about z: n_z = a u + b for a
uniform u, azimuth φ = 2π u' uniform. The formulas are those of the thesis codes.
Variants§
Isotropic
Isotropic: n_z uniform in [−1, 1] (thesis spin = 0).
Cone
Inside a cone of half-angle theta0 (radians) around z: n_z uniform in [cos θ0, 1]
(thesis spin ≠ 0, theta_0).
Polarized
Mean polarisation mz along z: n_z uniform in [2 mz − 1, 1] (thesis 2015 codes, Mz).
Implementations§
Trait Implementations§
impl Copy for Moments
impl StructuralPartialEq for Moments
Auto Trait Implementations§
impl Freeze for Moments
impl RefUnwindSafe for Moments
impl Send for Moments
impl Sync for Moments
impl Unpin for Moments
impl UnsafeUnpin for Moments
impl UnwindSafe for Moments
Blanket Implementations§
impl<T> Boilerplate for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more