31 #ifndef GRT_LDA_HEADER
32 #define GRT_LDA_HEADER
34 #include "../../CoreModules/Classifier.h"
35 #include "../../Util/LUDecomposition.h"
50 UINT getNumDimensions()
const {
return weights.
getSize(); }
64 LDA(
bool useScaling=
false,
bool useNullRejection=
true,Float nullRejectionCoeff=10.0);
80 this->models = rhs.models;
97 if( classifier == NULL )
return false;
101 LDA *ptr = (
LDA*)classifier;
103 this->models = ptr->models;
165 #endif //GRT_LDA_HEADER
std::string getClassifierType() const
virtual bool predict(VectorDouble inputVector)
unsigned int getSize() const
LDA & operator=(const LDA &rhs)
virtual bool train(ClassificationData trainingData)
LDA(bool useScaling=false, bool useNullRejection=true, Float nullRejectionCoeff=10.0)
virtual bool saveModelToFile(std::string filename) const
bool copyBaseVariables(const Classifier *classifier)
virtual bool loadModelFromFile(std::string filename)
virtual bool saveModelToFile(std::fstream &file) const
virtual bool loadModelFromFile(std::fstream &file)
virtual bool deepCopyFrom(const Classifier *classifier)