-
3.39.21
|
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 | (np.ndarray) the vector to approximate by D@x. |
D | (np.ndarray or a Faust) the dictionary as a numpy array or a Faust. |
maxiter | (int or NoneType) the maximum number of iterations of the algorithm. By default (None) it's y's dimension: max(y.shape). |
tol | (float) the tolerance error to reach for the algorithm to stop. By default, it's zero for not stopping on error criterion. |
relerr | (bool) the type of error stopping criterion. Default to True to use relative error, otherwise (False) the absolute error is used. |
verbose | (bool) to enable the verbosity (True). |
Examples
Stopping. Exact signal representation found!