pub struct GraphFourierTransform {
pub eigenvalues: Array1<f64>,
pub eigenvectors: Array2<f64>,
}Expand description
Graph Fourier Transform (GFT) based on the graph Laplacian eigenvectors.
The GFT projects a graph signal onto the frequency basis defined by the
eigenvectors of the graph Laplacian L = D − A. Low-frequency components
correspond to smooth signals (slowly varying across edges); high-frequency
components to rapidly oscillating signals.
§Fields
eigenvalues— sorted Laplacian spectrum (graph frequencies) λ₀ ≤ λ₁ ≤ …eigenvectors— columns are eigenvectors (basis functions); shape(n, n)
Fields§
§eigenvalues: Array1<f64>Graph frequencies (Laplacian eigenvalues), sorted ascending.
eigenvectors: Array2<f64>Frequency basis: eigenvectors as columns, shape (n, n).
Implementations§
Source§impl GraphFourierTransform
impl GraphFourierTransform
Sourcepub fn from_adjacency(adj: &Array2<f64>) -> Result<Self>
pub fn from_adjacency(adj: &Array2<f64>) -> Result<Self>
Build a GFT from a weighted adjacency matrix.
Computes L = D − A and its full eigendecomposition.
Sourcepub fn from_laplacian(laplacian: &Array2<f64>) -> Result<Self>
pub fn from_laplacian(laplacian: &Array2<f64>) -> Result<Self>
Build a GFT directly from a precomputed Laplacian matrix.
Trait Implementations§
Source§impl Clone for GraphFourierTransform
impl Clone for GraphFourierTransform
Source§fn clone(&self) -> GraphFourierTransform
fn clone(&self) -> GraphFourierTransform
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GraphFourierTransform
impl RefUnwindSafe for GraphFourierTransform
impl Send for GraphFourierTransform
impl Sync for GraphFourierTransform
impl Unpin for GraphFourierTransform
impl UnsafeUnpin for GraphFourierTransform
impl UnwindSafe for GraphFourierTransform
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
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>
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