Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

CLUS::ContinuousLinearTransformation Class Reference

Applies linear shifts on continuous data. More...

#include <continuouslineartransformation.h>


Public Member Functions

 ContinuousLinearTransformation (int NoAttributes, int NoDatasets, Matrix< double > &TrainingDataset)
double getShift (int i, int j)
void SetShiftsAttribute (int attrib, Vector< double > &shiftsAtt)
double GetShift (int attrib, int datasetIndex)
void ApplyShiftToTuple (double *dataPoint, int datasetIndex)
 Use the same convention with last position encoding the original dataset.

bool HasAttributeShifts (int attrib)

Private Attributes

Vector< bool > mask
 keep track the attributes

Matrix< double > shifts
 shifts: attributes as rows, datasets as columns

Matrix< double > & dataset
 original dataset; transformations are applied to it when they change


Detailed Description

Applies linear shifts on continuous data.

Keeps track of what columns transformations are applied on.

Applying the shift means substracting it from the dataset.

Definition at line 51 of file continuouslineartransformation.h.


Constructor & Destructor Documentation

CLUS::ContinuousLinearTransformation::ContinuousLinearTransformation int  NoAttributes,
int  NoDatasets,
Matrix< double > &  TrainingDataset
[inline]
 

Definition at line 63 of file continuouslineartransformation.h.


Member Function Documentation

void CLUS::ContinuousLinearTransformation::ApplyShiftToTuple double *  dataPoint,
int  datasetIndex
[inline]
 

Use the same convention with last position encoding the original dataset.

Definition at line 113 of file continuouslineartransformation.h.

Referenced by CLUS::MultiDecisionTree< T_Splitter >::Infer(), and CLUS::MultiDecisionTree< T_Splitter >::Prune().

double CLUS::ContinuousLinearTransformation::GetShift int  attrib,
int  datasetIndex
[inline]
 

Definition at line 107 of file continuouslineartransformation.h.

Referenced by CLUS::BinaryMultiClassificationSplitter::ComputeCenter(), CLUS::BinaryMultiClassificationSplitter::ComputeSplitPoint(), and CLUS::BinaryMultiClassificationSplitter::getContinuousShift().

double CLUS::ContinuousLinearTransformation::getShift int  i,
int  j
[inline]
 

Definition at line 70 of file continuouslineartransformation.h.

Referenced by CLUS::MultiDecisionTree< T_Splitter >::SaveToStream().

bool CLUS::ContinuousLinearTransformation::HasAttributeShifts int  attrib  )  [inline]
 

Definition at line 122 of file continuouslineartransformation.h.

Referenced by CLUS::BinaryMultiClassificationSplitter::ComputeSplitVariable(), CLUS::BinaryMultiClassificationSplitter::InitializeSplitStatistics(), CLUS::MultiDecisionTree< T_Splitter >::SaveToStream(), and CLUS::BinaryMultiClassificationSplitter::UpdateSplitStatistics().

void CLUS::ContinuousLinearTransformation::SetShiftsAttribute int  attrib,
Vector< double > &  shiftsAtt
[inline]
 

Definition at line 76 of file continuouslineartransformation.h.

Referenced by CLUS::MultiDecisionTree< T_Splitter >::Identify().


Field Documentation

Matrix<double>& CLUS::ContinuousLinearTransformation::dataset [private]
 

original dataset; transformations are applied to it when they change

Definition at line 60 of file continuouslineartransformation.h.

Referenced by ContinuousLinearTransformation(), and SetShiftsAttribute().

Vector<bool> CLUS::ContinuousLinearTransformation::mask [private]
 

keep track the attributes

Definition at line 54 of file continuouslineartransformation.h.

Referenced by ApplyShiftToTuple(), ContinuousLinearTransformation(), getShift(), HasAttributeShifts(), and SetShiftsAttribute().

Matrix<double> CLUS::ContinuousLinearTransformation::shifts [private]
 

shifts: attributes as rows, datasets as columns

Definition at line 57 of file continuouslineartransformation.h.

Referenced by ApplyShiftToTuple(), ContinuousLinearTransformation(), GetShift(), getShift(), and SetShiftsAttribute().


The documentation for this class was generated from the following file:
Generated on Mon Jul 21 16:57:47 2003 for SECRET by doxygen 1.3.2