Skip to main content

GraphFilter

Trait GraphFilter 

Source
pub trait GraphFilter {
    // Required methods
    fn apply(
        &self,
        gft: &GraphFourierTransform,
        signal: &Array1<f64>,
    ) -> Result<Array1<f64>>;
    fn frequency_response(&self, gft: &GraphFourierTransform) -> Array1<f64>;
}
Expand description

Trait for spectral graph filters.

A filter takes a graph signal and returns a filtered version by modifying the spectral coefficients according to a frequency-response function h(λ).

Required Methods§

Source

fn apply( &self, gft: &GraphFourierTransform, signal: &Array1<f64>, ) -> Result<Array1<f64>>

Apply the filter to signal using the precomputed GFT basis.

Source

fn frequency_response(&self, gft: &GraphFourierTransform) -> Array1<f64>

Return the frequency response h(λ) for each eigenvalue in gft.

Implementors§