Xmipp  v3.23.11-Nereus
nca.h
Go to the documentation of this file.
1 /*
2  * NCA.h
3  *
4  * Created on: Feb 25, 2013
5  * Author: xmipp
6  */
7 
8 #ifndef NCA_H_
9 #define NCA_H_
10 
11 #include <core/matrix2d.h>
12 #include <core/matrix1d.h>
13 #include "dimred_tools.h"
14 
21 {
22 public:
24  double lambda;
25 
28 
30  int K;
31 public:
32  // Auxiliary variables for evaluating the objective function
35 
36  // Index of the nearest neighbors to each one of the observations
38 public:
40  void setLabels(const Matrix1D<unsigned char> &labels);
41 
43  void setSpecificParameters(double lambda=0., int K=12);
44 
45  double objectiveFunction();
46 
48  void reduceDimensionality();
49 };
51 
52 #endif /* NCA_H_ */
void setSpecificParameters(double lambda=0., int K=12)
Set specific parameters.
Definition: nca.cpp:34
Matrix1D< unsigned char > labels
Labels.
Definition: nca.h:27
void setLabels(const Matrix1D< unsigned char > &labels)
Set labels.
Definition: nca.cpp:29
Matrix2D< int > idx
Definition: nca.h:37
double lambda
Weight factor for regularization.
Definition: nca.h:24
Matrix1D< double > D2YRowSum
Definition: nca.h:34
Matrix2D< double > D2Y
Definition: nca.h:33
Matrix2D< double > A
Definition: nca.h:33
double objectiveFunction()
Definition: nca.cpp:40
void reduceDimensionality()
Reduce dimensionality.
Definition: nca.cpp:95
int K
Number of neighbours.
Definition: nca.h:30