21 #define GRT_DLL_EXPORTS 26 RegressionSample::RegressionSample(){
30 this->inputVector = inputVector;
31 this->targetVector = targetVector;
35 this->inputVector = rhs.inputVector;
36 this->targetVector = rhs.targetVector;
39 RegressionSample::~RegressionSample(){
42 void RegressionSample::clear(){
48 this->inputVector = inputVector;
49 this->targetVector = targetVector;
52 UINT RegressionSample::getNumInputDimensions()
const{
56 UINT RegressionSample::getNumTargetDimensions()
const{
60 Float RegressionSample::getInputVectorValue(
const UINT index)
const{
61 if( index < inputVector.
getSize() )
return inputVector[index];
64 Float RegressionSample::getTargetVectorValue(
const UINT index)
const{
65 if( index < targetVector.
getSize() )
return targetVector[index];
69 const VectorFloat& RegressionSample::getInputVector()
const{
73 const VectorFloat& RegressionSample::getTargetVector()
const{
This class stores the input vector and target vector for a single labelled regression instance...