25 RegressionSample::RegressionSample(){
29 this->inputVector = inputVector;
30 this->targetVector = targetVector;
34 this->inputVector = rhs.inputVector;
35 this->targetVector = rhs.targetVector;
38 RegressionSample::~RegressionSample(){
41 void RegressionSample::clear(){
47 this->inputVector = inputVector;
48 this->targetVector = targetVector;
51 UINT RegressionSample::getNumInputDimensions()
const{
55 UINT RegressionSample::getNumTargetDimensions()
const{
59 Float RegressionSample::getInputVectorValue(
const UINT index)
const{
60 if( index < inputVector.
getSize() )
return inputVector[index];
63 Float RegressionSample::getTargetVectorValue(
const UINT index)
const{
64 if( index < targetVector.
getSize() )
return targetVector[index];
68 const VectorFloat& RegressionSample::getInputVector()
const{
72 const VectorFloat& RegressionSample::getTargetVector()
const{
unsigned int getSize() const
This class stores the input vector and target vector for a single labelled regression instance...