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();
214 return quantizationDistances;
252 #endif //GRT_KMEANS_QUANTIZER_HEADER
virtual bool train_(ClassificationData &trainingData)
virtual bool computeFeatures(const VectorFloat &inputVector)
virtual bool predict(VectorFloat inputVector)
KMeansQuantizer(const UINT numClusters=10)
virtual bool predict_(VectorFloat &inputVector)
MatrixFloat getQuantizationModel() const
UINT getQuantizedValue() const
virtual bool train(ClassificationData trainingData)
virtual bool deepCopyFrom(const FeatureExtraction *featureExtraction)
virtual bool saveModelToFile(std::fstream &file) const
bool setNumClusters(const UINT numClusters)
UINT quantize(Float inputValue)
UINT getNumClusters() const
virtual ~KMeansQuantizer()
virtual bool train_(ClassificationData &trainingData)
KMeansQuantizer & operator=(const KMeansQuantizer &rhs)
virtual bool loadModelFromFile(std::fstream &file)
bool getQuantizerTrained() const
VectorFloat getQuantizationDistances() const