Feature Selection ToolboxFST3 Library / Documentation

FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER > Class Template Reference

Implements data access to data cached entirely in memory, concrete file type support is delegated to derived classes. More...

#include <data_accessor_splitting_mem.hpp>

Inheritance diagram for FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >:
Collaboration diagram for FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >:

List of all members.

Public Types

typedef
Data_Accessor_Splitting
< DATATYPE, IDXTYPE,
INTERVALCONTAINER > 
DAS
typedef boost::shared_ptr
< Data_Scaler< DATATYPE > > 
PScaler
typedef DAS::PPattern PPattern
typedef DAS::PSplitters PSplitters

Public Member Functions

 Data_Accessor_Splitting_Mem (const string _filename, const PSplitters _dsp, const PScaler _dsc)
virtual void initialize ()
 to be called after object creation (for initialization of data file access etc.)
virtual bool getFirstBlock (const DataPart ofwhat, PPattern &firstpattern, IDXTYPE &patterns, const unsigned int loopdepth=0)
 returns pointer to first consecutive block of data of requested DataPart type in the current split (access iteration)
virtual bool getNextBlock (const DataPart ofwhat, PPattern &firstpattern, IDXTYPE &patterns, const unsigned int loopdepth=0)
 returns pointer to next consecutive block of data of requested DataPart type in the current split (access iteration)
Data_Accessor_Splitting_Memclone () const
Data_Accessor_Splitting_Memsharing_clone () const =0
Data_Accessor_Splitting_Memstateless_clone () const
virtual std::ostream & print (std::ostream &os) const

Protected Member Functions

 Data_Accessor_Splitting_Mem (const Data_Accessor_Splitting_Mem &damt, int)
virtual void initial_data_read ()=0
virtual void initial_file_prepare ()=0
virtual unsigned int file_getNoOfClasses () const =0
virtual unsigned int file_getNoOfFeatures () const =0
virtual IDXTYPE file_getClassSize (unsigned int cls) const =0
void initial_data_scaling ()

Protected Attributes

PScaler dsc
string filename
IDXTYPE datasize
boost::shared_array< DATATYPE > data
vector< IDXTYPE > _class_offset
 class start indexes (offsets) in whatever random-access data representation

Detailed Description

template<typename DATATYPE, typename IDXTYPE, class INTERVALCONTAINER>
class FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >

Implements data access to data cached entirely in memory, concrete file type support is delegated to derived classes.


Member Function Documentation

template<typename DATATYPE , typename IDXTYPE , class INTERVALCONTAINER >
Data_Accessor_Splitting_Mem* FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >::clone (  )  const [inline, virtual]
template<typename DATATYPE , typename IDXTYPE , class INTERVALCONTAINER >
Data_Accessor_Splitting_Mem* FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >::sharing_clone (  )  const [pure virtual]

create equivalent clone of the current object, parmitting read-only access to structures in the source object (allows referencing instead of copying of large memory structures). may be faster and save space but requires more caution with respect to concurrency Use example: Data_Accessor memory data representation cloning

Implements FST::Clonable.

Implemented in FST::Data_Accessor_Splitting_MemARFF< DATATYPE, IDXTYPE, INTERVALCONTAINER >, and FST::Data_Accessor_Splitting_MemTRN< DATATYPE, IDXTYPE, INTERVALCONTAINER >.

template<typename DATATYPE , typename IDXTYPE , class INTERVALCONTAINER >
Data_Accessor_Splitting_Mem* FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >::stateless_clone (  )  const [inline, virtual]

create clone of the current object, ignoring internal temporary structures to save speed. Does not replicate exact object state. The clone must be used carefully in a way that ensures internal structure re-initialization Use example: Data_Splitter cloning or Classifier_SVM cloning due to inability to clone external structures defined in LibSVM

Implements FST::Clonable.

template<typename DATATYPE , typename IDXTYPE , class INTERVALCONTAINER >
virtual void FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >::initial_data_read (  )  [protected, pure virtual]
template<typename DATATYPE , typename IDXTYPE , class INTERVALCONTAINER >
void FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >::initial_data_scaling (  )  [inline, protected]

Member Data Documentation

template<typename DATATYPE , typename IDXTYPE , class INTERVALCONTAINER >
PScaler FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >::dsc [protected]
template<typename DATATYPE , typename IDXTYPE , class INTERVALCONTAINER >
string FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >::filename [protected]
template<typename DATATYPE , typename IDXTYPE , class INTERVALCONTAINER >
vector<IDXTYPE> FST::Data_Accessor_Splitting_Mem< DATATYPE, IDXTYPE, INTERVALCONTAINER >::_class_offset [protected]

The documentation for this class was generated from the following file:

Generated on Thu Mar 31 11:37:59 2011 for FST3Library by  doxygen 1.6.1