#[non_exhaustive]pub struct SpectralDensityResult {
pub freqs: Vec<f64>,
pub re: Vec<Vec<f64>>,
pub im: Vec<Vec<f64>>,
pub m: usize,
pub n_curves: usize,
pub bandwidth: usize,
}Expand description
Result of the spectral density operator estimator.
Produced by spectral_density (plan 41-01, FTS-03-01). Holds the complex
m×m spectral density operator at each of the n_curves Fourier frequencies
θ_j = 2πj/N. The operator at frequency k is stored as separate real
(re[k]) and imaginary (im[k]) flat column-major m×m matrices — element
(j1, j2) lives at index j1 + j2 * m. The operator is Hermitian:
im[k][j1 + j2*m] == -im[k][j2 + j1*m].
§Divergence from freqdom
The 1/2π pre-factor is omitted (matching the crate’s long_run_covariance,
which does not divide by 2π), so eigenvalues are 2π larger than freqdom
output. Filter shapes (eigenvectors) are unaffected.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.freqs: Vec<f64>Fourier frequencies θ_j = 2πj/N, length n_curves.
re: Vec<Vec<f64>>Real part of the operator at each frequency; re[k] is a flat column-major m×m matrix.
im: Vec<Vec<f64>>Imaginary part of the operator at each frequency; im[k] is a flat column-major m×m matrix.
m: usizeGrid dimension m (each re[k]/im[k] is m×m).
n_curves: usizeNumber of curves N (= number of Fourier frequencies).
bandwidth: usizeBartlett lag-window bandwidth used.
Trait Implementations§
Source§impl Clone for SpectralDensityResult
impl Clone for SpectralDensityResult
Source§fn clone(&self) -> SpectralDensityResult
fn clone(&self) -> SpectralDensityResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpectralDensityResult
impl Debug for SpectralDensityResult
Source§impl PartialEq for SpectralDensityResult
impl PartialEq for SpectralDensityResult
impl StructuralPartialEq for SpectralDensityResult
Auto Trait Implementations§
impl Freeze for SpectralDensityResult
impl RefUnwindSafe for SpectralDensityResult
impl Send for SpectralDensityResult
impl Sync for SpectralDensityResult
impl Unpin for SpectralDensityResult
impl UnsafeUnpin for SpectralDensityResult
impl UnwindSafe for SpectralDensityResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.