![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
Norm is a class that spherifies the data.
#include <norm.h>

Public Member Functions | |
| virtual GurlsOptionsList * | execute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0 |
| Spherifies the data. | |
Static Public Member Functions | |
| static Norm< T > * | factory (const std::string &id) throw (BadNormCreation) |
| Factory function returning a pointer to the newly created object. | |
| virtual GurlsOptionsList* gurls::Norm< T >::execute | ( | const gMat2D< T > & | X, |
| const gMat2D< T > & | Y, | ||
| const GurlsOptionsList & | opt | ||
| ) | [pure virtual] |
| X | input data matrix |
| Y | labels matrix |
| opt | options with the different required fields based on the sub-class |
Implemented in gurls::NormTestZScore< T >, gurls::NormZScore< T >, and gurls::NormL2< T >.
| static Norm<T>* gurls::Norm< T >::factory | ( | const std::string & | id | ) | throw (BadNormCreation) [inline, static] |
Definition at line 152 of file norm.h.
{
if(id == "l2")
return new NormL2<T>;
if(id == "zscore")
return new NormZScore<T>;
if(id == "testzscore")
return new NormTestZScore<T>;
throw BadNormCreation(id);
}