37 #ifndef GRT_KMEANS_QUANTIZER_HEADER 38 #define GRT_KMEANS_QUANTIZER_HEADER 41 #include "../../CoreModules/FeatureExtraction.h" 42 #include "../../ClusteringModules/KMeans/KMeans.h" 43 #include "../../DataStructures/ClassificationDataStream.h" 44 #include "../../DataStructures/TimeSeriesClassificationData.h" 45 #include "../../DataStructures/UnlabelledData.h" 103 virtual bool reset();
110 virtual bool clear();
120 virtual bool save( std::fstream &file )
const;
129 virtual bool load( std::fstream &file );
177 UINT quantize(
const Float inputValue);
199 UINT getNumClusters()
const;
214 return quantizationDistances;
232 bool setNumClusters(
const UINT numClusters);
245 static std::string
getId();
254 static std::string id;
259 #endif //GRT_KMEANS_QUANTIZER_HEADER std::string getId() const
virtual bool predict_(VectorFloat &inputVector)
MatrixFloat getQuantizationModel() const
UINT getQuantizedValue() const
virtual bool save(const std::string &filename) const
virtual bool train_(ClassificationData &trainingData)
bool getQuantizerTrained() const
virtual bool load(const std::string &filename)
VectorFloat getQuantizationDistances() const