25 ClassificationSample::ClassificationSample():numDimensions(0),classLabel(0){
28 ClassificationSample::ClassificationSample(
const UINT numDimensions){
29 this->numDimensions = numDimensions;
31 sample.
resize( numDimensions );
34 ClassificationSample::ClassificationSample(
const UINT classLabel,
const VectorFloat &sample){
35 this->classLabel = classLabel;
36 this->sample = sample;
37 this->numDimensions = (UINT)sample.size();
41 this->classLabel = rhs.classLabel;
42 this->sample = rhs.sample;
43 this->numDimensions = rhs.numDimensions;
46 ClassificationSample::~ClassificationSample(){
49 bool ClassificationSample::clear(){
56 bool ClassificationSample::set(UINT classLabel,
const VectorFloat &sample){
57 this->classLabel = classLabel;
58 this->sample = sample;
59 this->numDimensions = (UINT)sample.size();
63 bool ClassificationSample::setClassLabel(
const UINT classLabel){
64 this->classLabel = classLabel;
68 bool ClassificationSample::setSample(
const VectorFloat &sample){
69 this->sample = sample;
70 this->numDimensions = (UINT)sample.size();
virtual bool resize(const unsigned int size)
This class stores the class label and raw data for a single labelled classification sample...