Xmipp
v3.23.11-Nereus
|
#include <nca.h>
Public Member Functions | |
void | setLabels (const Matrix1D< unsigned char > &labels) |
Set labels. More... | |
void | setSpecificParameters (double lambda=0., int K=12) |
Set specific parameters. More... | |
double | objectiveFunction () |
void | reduceDimensionality () |
Reduce dimensionality. More... | |
Public Member Functions inherited from DimRedAlgorithm | |
DimRedAlgorithm () | |
Empty constructor. More... | |
void | setInputData (Matrix2D< double > &X) |
Set input data. More... | |
void | setOutputDimensionality (size_t outputDim) |
Set output dimensionality. More... | |
const Matrix2D< double > & | getReducedData () |
Get reduced data. More... | |
Public Attributes | |
double | lambda |
Weight factor for regularization. More... | |
Matrix1D< unsigned char > | labels |
Labels. More... | |
int | K |
Number of neighbours. More... | |
Matrix2D< double > | D2Y |
Matrix2D< double > | A |
Matrix1D< double > | D2YRowSum |
Matrix2D< int > | idx |
Public Attributes inherited from DimRedAlgorithm | |
Matrix2D< double > * | X |
Pointer to input data. More... | |
size_t | outputDim |
Output dim. More... | |
Matrix2D< double > | Y |
Output data. More... | |
DimRedDistance2 | distance |
Distance function. More... | |
FileName | fnMapping |
Save mapping. More... | |
double NeighbourhoodCA::objectiveFunction | ( | ) |
Definition at line 40 of file nca.cpp.
|
virtual |
Reduce dimensionality.
Implements DimRedAlgorithm.
Definition at line 95 of file nca.cpp.
void NeighbourhoodCA::setLabels | ( | const Matrix1D< unsigned char > & | labels | ) |
void NeighbourhoodCA::setSpecificParameters | ( | double | lambda = 0. , |
int | K = 12 |
||
) |
double NeighbourhoodCA::lambda |