-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMatchingPursuit.h
40 lines (28 loc) · 941 Bytes
/
MatchingPursuit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//-----------------------------------------------------------
// Copyright (C) 2019 Piotr (Peter) Beben <[email protected]>
// See LICENSE included.
#ifndef MATCHINGPURSUIT_H
#define MATCHINGPURSUIT_H
#include "constants.h"
#include <Eigen/Dense>
class MatchingPursuit
{
using Index = Eigen::Index;
using MatrixXf = Eigen::MatrixXf;
using VectorXf = Eigen::VectorXf;
public:
MatchingPursuit() :
ndim(0), natm(0), lmax(0) {}
MatchingPursuit(const MatchingPursuit &mp) : MatchingPursuit() {}
//{ ensure(sa.ndim, sa.natm, sa.lmax); }
~MatchingPursuit(){}
void ensure(Index nd, Index na, Index lm);
void operator() (
const VectorXf& Y, const MatrixXf& D, Index l,
VectorXf& X, VectorXf& R);
private:
Index ndim; // Size of signal vector.
Index natm; // No. of 'atoms' in dictionary.
Index lmax; // maximum sparsity constraint <= natm.
};
#endif // MATCHINGPURSUIT_H