Public Member Functions

CSubset Class Reference


Detailed Description

class for adding subset support to a class. Provides an interface for getting/setting subset_matrices and index conversion. Do not inherit from this class, use it as variable. Write wrappers for all get/set functions.

Definition at line 24 of file Subset.h.

Inheritance diagram for CSubset:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CSubset ()
 CSubset (SGVector< index_t > subset_idx)
virtual ~CSubset ()
const char * get_name () const
const index_t get_size () const
CSubsetduplicate ()
index_t subset_idx_conversion (index_t idx) const

Constructor & Destructor Documentation

CSubset (  ) 

default constructor, do not use

Definition at line 17 of file Subset.cpp.

CSubset ( SGVector< index_t subset_idx  ) 

constructor

Parameters:
subset_idx vector of subset indices, is deleted in destructor

Definition at line 22 of file Subset.cpp.

~CSubset (  )  [virtual]

destructor

Definition at line 27 of file Subset.cpp.


Member Function Documentation

CSubset * duplicate (  ) 
Returns:
a copy of this instance with a copy of the index vector

Definition at line 31 of file Subset.cpp.

const char* get_name ( void   )  const [virtual]
Returns:
name of the SGSerializable

Implements CSGObject.

Definition at line 40 of file Subset.h.

const index_t get_size (  )  const

get size of subset

Returns:
size of subset

Definition at line 45 of file Subset.h.

index_t subset_idx_conversion ( index_t  idx  )  const

returns the corresponding real index (in array) of a subset index (if there is a subset)

@ return array index of the provided subset index

Definition at line 55 of file Subset.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