SHOGUN  4.1.0
eppMatrix.h
Go to the documentation of this file.
1 /* This program is free software: you can redistribute it and/or modify
3  * the Free Software Foundation, either version 3 of the License, or
4  * (at your option) any later version.
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program. If not, see <http://www.gnu.org/licenses/>.
13  *
14  * Copyright (C) 2009 - 2012 Jun Liu and Jieping Ye
15  */
16
17 #ifndef EPPMATRIXQ1_SLEP
18 #define EPPMATRIXQ1_SLEP
19
20 #include <shogun/lib/config.h>
21
22 #include <shogun/lib/slep/q1/epph.h> /* This is the head file that contains the implementation of the used functions*/
23
24 /*
25  Lp Norm Regularized Euclidean Projection
26
27  min 1/2 ||x- v||_2^2 + rho * ||x||_p
28
29  Usage (in Matlab):
30  [x, c, iter_step]=epp(v, n, rho, p, c0);
31
32  Usage in C:
33  epp(x, c, iter_step, v, n, rho, p, c0);
34
35  The function epp implements the following three functions
36  epp1(x, v, n, rho) for p=1
37  epp2(x, v, n, rho) for p=2
38  eppInf(x, c, iter_step, v, n, rho, c0) for p=inf
39  eppO(x, c, iter_step, v, n, rho, p) for other p
40
41 ------------------------------------------------------------
42
43  Here, the input and output are of matrix form. Each row corresponds a group
44
45
46  Written by Jun Liu, May 18th, 2009