pub struct Esprit {
pub n: usize,
pub dim: usize,
pub l: usize,
pub x_min: f64,
pub x_max: f64,
pub s: Vec<f64>,
pub m: usize,
pub sigma: f64,
pub gamma: Vec<Complex<f64>>,
pub omega: Vec<Complex<f64>>,
pub err_max: f64,
pub err_ave: f64,
/* private fields */
}Expand description
Result of the ESPRIT approximation.
Fields§
§n: usizeNumber of samples N.
dim: usizeNumber of columns d.
l: usizeHankel parameter L.
x_min: f64Sampling interval.
x_max: f64Sampling interval.
s: Vec<f64>Singular values of the Hankel matrix (empty for zero input).
m: usizeNumber of nodes M.
sigma: f64S[M], the first discarded singular value (0 for zero input).
gamma: Vec<Complex<f64>>Nodes γ_j.
omega: Vec<Complex<f64>>Weights ω_j, column-major M x d.
err_max: f64Maximum error of the approximation on the samples.
err_ave: f64Largest mean (over samples) error among the columns.
Implementations§
Source§impl Esprit
impl Esprit
Sourcepub fn new(
h: &[Complex<f64>],
n: usize,
dim: usize,
p: &EspritParams,
) -> Result<Self>
pub fn new( h: &[Complex<f64>], n: usize, dim: usize, p: &EspritParams, ) -> Result<Self>
ESPRIT of h (column-major n x dim).
§Errors
Error::InvalidParameter for invalid parameters, and
Error::DecompositionFailed if no controlled approximation exists.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Esprit
impl RefUnwindSafe for Esprit
impl Send for Esprit
impl Sync for Esprit
impl Unpin for Esprit
impl UnsafeUnpin for Esprit
impl UnwindSafe for Esprit
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
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,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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