Public Member Functions | Protected Attributes

CStreamingFileFromFeatures Class Reference

Detailed Description

Class StreamingFileFromFeatures to read vector-by-vector from a CFeatures object.

The object must be initialized with another CFeatures object. It is upto the derived class to implement specialized functions to return the vector.

Only a subset of the functions defined in StreamingFile.h need to be implemented, as appropriate for the CFeatures object which the class works with.

For example, a derived class based on SimpleFeatures should only implement the get_(type)*_vector() functions, and a class based on StringFeatures should only implement the get_(type)*_string() functions.

Definition at line 34 of file StreamingFileFromFeatures.h.

Inheritance diagram for CStreamingFileFromFeatures:
Inheritance graph

List of all members.

Public Member Functions

 CStreamingFileFromFeatures ()
 CStreamingFileFromFeatures (CFeatures *feat)
 CStreamingFileFromFeatures (CFeatures *feat, float64_t *lab)
virtual ~CStreamingFileFromFeatures ()
virtual void set_features (CFeatures *feat)
virtual void set_labels (float64_t *lab)
virtual const char * get_name () const

Protected Attributes

 Features object.
 Labels (if applicable).

Constructor & Destructor Documentation

Default constructor

Definition at line 14 of file StreamingFileFromFeatures.cpp.

Constructor taking a CFeatures object as argument

feat features object

Definition at line 21 of file StreamingFileFromFeatures.cpp.

Constructor taking a CFeatures object and labels as arguments

feat features object
lab labels as float64_t*

Definition at line 28 of file StreamingFileFromFeatures.cpp.

~CStreamingFileFromFeatures (  )  [virtual]


Definition at line 35 of file StreamingFileFromFeatures.cpp.

Member Function Documentation

virtual const char* get_name ( void   )  const [virtual]
virtual void set_features ( CFeatures feat  )  [virtual]

Set the features object

feat features object as argument

Definition at line 67 of file StreamingFileFromFeatures.h.

virtual void set_labels ( float64_t lab  )  [virtual]

Set the labels

lab array of labels

Definition at line 78 of file StreamingFileFromFeatures.h.

Member Data Documentation

CFeatures* features [protected]
float64_t* labels [protected]

Labels (if applicable).

Definition at line 98 of file StreamingFileFromFeatures.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation