orthogonal_matching_pursuit

Function orthogonal_matching_pursuit 

Source
pub fn orthogonal_matching_pursuit<T>(
    signal: &Signal<T>,
    dictionary: &dyn Dictionary<T>,
    max_iterations: usize,
    tolerance: f64,
) -> Result<MatchingPursuitResult<T>>
Expand description

Orthogonal Matching Pursuit algorithm

Improved version of MP that orthogonalizes selected atoms, ensuring monotonic decrease in residual energy and better reconstruction.

§Arguments

  • signal - Input signal to decompose
  • dictionary - Dictionary of atoms
  • max_iterations - Maximum number of iterations
  • tolerance - Stop when residual energy drops below this threshold

§Returns

Sparse decomposition result