![]() |
FAµST (Flexible Approximate MUlti-layer Sparse Transforms)
3.38.14
|
The pyfaust tools module. More...
Functions | |
def | omp (y, D, maxiter=None, tol=0, relerr=True, verbose=False) |
Runs the greedy OMP algorithm optimized by Cholesky decomposition. More... | |
The pyfaust tools module.
def pyfaust.tools.omp | ( | y, | |
D, | |||
maxiter = None , |
|||
tol = 0 , |
|||
relerr = True , |
|||
verbose = False |
|||
) |
Runs the greedy OMP algorithm optimized by Cholesky decomposition.
y | the vector to approximate by D@x. |
D | the dictionary as a numpy array or a Faust. |
maxiter | the maximum number of iterations of the algorithm. By default (None) it's y's dimension: max(y.shape). |
tol | the tolerance error to reach for the algorithm to stop. By default, it's zero for not stopping on error criterion. |
relerr | the type of error stopping criterion. Default to True to use relative error, otherwise (False) the absolute error is used. |
verbose | to enable the verbosity (value to True). |
Examples
Stopping. Exact signal representation found!