SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
eppMatrix.h
Go to the documentation of this file.
1 /* This program is free software: you can redistribute it and/or modify
2  * it under the terms of the GNU General Public License as published by
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 
18 #ifndef EPPMATRIXQ1_SLEP
19 #define EPPMATRIXQ1_SLEP
20 
21 #include <shogun/lib/config.h>
22 #ifdef USE_GPL_SHOGUN
23 
24 #include <shogun/lib/slep/q1/epph.h> /* This is the head file that contains the implementation of the used functions*/
25 
26 /*
27  Lp Norm Regularized Euclidean Projection
28 
29  min 1/2 ||x- v||_2^2 + rho * ||x||_p
30 
31  Usage (in Matlab):
32  [x, c, iter_step]=epp(v, n, rho, p, c0);
33 
34  Usage in C:
35  epp(x, c, iter_step, v, n, rho, p, c0);
36 
37  The function epp implements the following three functions
38  epp1(x, v, n, rho) for p=1
39  epp2(x, v, n, rho) for p=2
40  eppInf(x, c, iter_step, v, n, rho, c0) for p=inf
41  eppO(x, c, iter_step, v, n, rho, p) for other p
42 
43 ------------------------------------------------------------
44 
45  Here, the input and output are of matrix form. Each row corresponds a group
46 
47 
48  Written by Jun Liu, May 18th, 2009
49  For any problem, please contact: j.liu@asu.edu
50 
51  */
52 void eppMatrix(double *X, double * V, int k, int n, double rho, double p);
53 #endif //USE_GPL_SHOGUN
54 #endif /* ----- #ifndef EPPMATRIXQ1_SLEP ----- */
55 

SHOGUN Machine Learning Toolbox - Documentation