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

CLUS::DiscretePermutationTransformation Class Reference

#include <discretepermutationtransformation.h>


Public Member Functions

 DiscretePermutationTransformation (int NoAttributes, int NoDatasets, Matrix< double > &cDataset, Matrix< int > &dDataset, const Vector< int > &DDomainSize)
void SetShiftsAttribute (int attrib, Vector< Permutation > &shiftsAtt)
Permutation GetShift (int attrib, int datasetIndex)
void ApplyShiftToTuple (int *dataPoint, int datasetIndex)
bool HasAttributeShifts (int attrib)
void saveToStream (ostream &out, int attribute, int dataset)

Private Attributes

Vector< bool > mask
 keep track of the attributes with shifts

Matrix< Permutationshifts
 shifts: attributes as rows, datasets as columns

Matrix< double > & cdataset
 original dataset; keep arround for dataset information only

Matrix< int > & ddataset
 discrete dataset; last column ignored since is classlabel

const Vector< int > & dDomainSize
int numDataSets


Constructor & Destructor Documentation

CLUS::DiscretePermutationTransformation::DiscretePermutationTransformation int  NoAttributes,
int  NoDatasets,
Matrix< double > &  cDataset,
Matrix< int > &  dDataset,
const Vector< int > &  DDomainSize
[inline]
 

Definition at line 149 of file discretepermutationtransformation.h.


Member Function Documentation

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

Definition at line 189 of file discretepermutationtransformation.h.

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

Permutation CLUS::DiscretePermutationTransformation::GetShift int  attrib,
int  datasetIndex
[inline]
 

Definition at line 184 of file discretepermutationtransformation.h.

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

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

Definition at line 196 of file discretepermutationtransformation.h.

Referenced by CLUS::BinaryMultiClassificationSplitter::ComputeSplitVariable(), CLUS::BinaryMultiClassificationSplitter::InitializeSplitStatistics(), and CLUS::BinaryMultiClassificationSplitter::UpdateSplitStatistics().

void CLUS::DiscretePermutationTransformation::saveToStream ostream &  out,
int  attribute,
int  dataset
[inline]
 

Definition at line 201 of file discretepermutationtransformation.h.

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

void CLUS::DiscretePermutationTransformation::SetShiftsAttribute int  attrib,
Vector< Permutation > &  shiftsAtt
[inline]
 

Definition at line 165 of file discretepermutationtransformation.h.


Field Documentation

Matrix<double>& CLUS::DiscretePermutationTransformation::cdataset [private]
 

original dataset; keep arround for dataset information only

Definition at line 139 of file discretepermutationtransformation.h.

Referenced by DiscretePermutationTransformation(), and SetShiftsAttribute().

Matrix<int>& CLUS::DiscretePermutationTransformation::ddataset [private]
 

discrete dataset; last column ignored since is classlabel

Definition at line 142 of file discretepermutationtransformation.h.

Referenced by DiscretePermutationTransformation(), and SetShiftsAttribute().

const Vector<int>& CLUS::DiscretePermutationTransformation::dDomainSize [private]
 

Definition at line 144 of file discretepermutationtransformation.h.

Referenced by DiscretePermutationTransformation().

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

keep track of the attributes with shifts

Definition at line 133 of file discretepermutationtransformation.h.

Referenced by ApplyShiftToTuple(), DiscretePermutationTransformation(), HasAttributeShifts(), and SetShiftsAttribute().

int CLUS::DiscretePermutationTransformation::numDataSets [private]
 

Definition at line 146 of file discretepermutationtransformation.h.

Referenced by DiscretePermutationTransformation().

Matrix<Permutation> CLUS::DiscretePermutationTransformation::shifts [private]
 

shifts: attributes as rows, datasets as columns

Definition at line 136 of file discretepermutationtransformation.h.

Referenced by ApplyShiftToTuple(), DiscretePermutationTransformation(), GetShift(), saveToStream(), and SetShiftsAttribute().


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