SiGraph: sulcal graphs


sigraph::DBLearnable Class Reference

#include <si/learnable/dbLearnable.h>

Inheritance diagram for sigraph::DBLearnable:
Collaboration diagram for sigraph::DBLearnable:

Public Member Functions

 DBLearnable ()
 
 DBLearnable (double *X, double *Y, char *INF, std::vector< int > &dims, bool owned_data)
 Create DBLearnable from arrays and dims.
 
virtual ~DBLearnable ()
 
 DBLearnable (const DBLearnable &db)
 
DBLearnableoperator= (const DBLearnable &db)
 
double * getX () const
 Accessors :
 
double * getY () const
 
char * getINF () const
 
int size () const
 
const std::vector< int > & getColsNumber () const
 
int getXcolsNumber () const
 
int getYcolsNumber () const
 
int getINFcolsNumber () const
 
unsigned int getIndiceFromLabel (std::string &label) const
 
DBVectorLearnableoperator[] (unsigned int ind) const
 
void clear ()
 
void setLabels (std::vector< std::string > &labels)
 
- Public Member Functions inherited from sigraph::Learnable
virtual ~Learnable ()
 

Protected Attributes

double * _X
 X data matrix.
 
double * _Y
 Y data matrix.
 
char * _INF
 meta information data matrix
 
int _size
 number of vectors
 
std::vector< int > _cols_numbers
 number of columns (X, Y, INF)
 
bool _owned_data
 data are owned by database
 
std::map< std::string, unsigned int > _labels_to_indices
 info labels -> indices
 

Additional Inherited Members

- Protected Member Functions inherited from sigraph::Learnable
 Learnable ()
 

Detailed Description

Definition at line 19 of file dbLearnable.h.

Constructor & Destructor Documentation

◆ DBLearnable() [1/3]

sigraph::DBLearnable::DBLearnable ( )
inline

◆ DBLearnable() [2/3]

sigraph::DBLearnable::DBLearnable ( double * X,
double * Y,
char * INF,
std::vector< int > & dims,
bool owned_data )

Create DBLearnable from arrays and dims.

X : X data matrix. Y : Y data matrix. INF : INF data matrix. dims : std::vector of 4 elements : first : (x, y, z) number of columns and then number of rows.

◆ ~DBLearnable()

virtual sigraph::DBLearnable::~DBLearnable ( )
virtual

◆ DBLearnable() [3/3]

sigraph::DBLearnable::DBLearnable ( const DBLearnable & db)
inline

Definition at line 36 of file dbLearnable.h.

References DBLearnable(), and sigraph::Learnable::Learnable().

Member Function Documentation

◆ clear()

void sigraph::DBLearnable::clear ( )

◆ getColsNumber()

const std::vector< int > & sigraph::DBLearnable::getColsNumber ( ) const
inline

Definition at line 74 of file dbLearnable.h.

References _cols_numbers.

◆ getIndiceFromLabel()

unsigned int sigraph::DBLearnable::getIndiceFromLabel ( std::string & label) const
inline

Definition at line 79 of file dbLearnable.h.

References _labels_to_indices.

◆ getINF()

char * sigraph::DBLearnable::getINF ( ) const
inline

Definition at line 72 of file dbLearnable.h.

References _INF.

◆ getINFcolsNumber()

int sigraph::DBLearnable::getINFcolsNumber ( ) const
inline

Definition at line 78 of file dbLearnable.h.

References _cols_numbers.

◆ getX()

double * sigraph::DBLearnable::getX ( ) const
inline

Accessors :

Definition at line 70 of file dbLearnable.h.

References _X.

◆ getXcolsNumber()

int sigraph::DBLearnable::getXcolsNumber ( ) const
inline

Definition at line 76 of file dbLearnable.h.

References _cols_numbers.

◆ getY()

double * sigraph::DBLearnable::getY ( ) const
inline

Definition at line 71 of file dbLearnable.h.

References _Y.

◆ getYcolsNumber()

int sigraph::DBLearnable::getYcolsNumber ( ) const
inline

Definition at line 77 of file dbLearnable.h.

References _cols_numbers.

◆ operator=()

DBLearnable & sigraph::DBLearnable::operator= ( const DBLearnable & db)
inline

Definition at line 43 of file dbLearnable.h.

References _cols_numbers, _INF, _owned_data, _size, _X, _Y, and DBLearnable().

◆ operator[]()

DBVectorLearnable * sigraph::DBLearnable::operator[] ( unsigned int ind) const

◆ setLabels()

void sigraph::DBLearnable::setLabels ( std::vector< std::string > & labels)
inline

Definition at line 92 of file dbLearnable.h.

References _labels_to_indices.

◆ size()

int sigraph::DBLearnable::size ( ) const
inline

Definition at line 73 of file dbLearnable.h.

References _size.

Member Data Documentation

◆ _cols_numbers

std::vector<int> sigraph::DBLearnable::_cols_numbers
protected

number of columns (X, Y, INF)

Definition at line 111 of file dbLearnable.h.

Referenced by DBLearnable(), getColsNumber(), getINFcolsNumber(), getXcolsNumber(), getYcolsNumber(), and operator=().

◆ _INF

char* sigraph::DBLearnable::_INF
protected

meta information data matrix

Definition at line 107 of file dbLearnable.h.

Referenced by DBLearnable(), getINF(), and operator=().

◆ _labels_to_indices

std::map<std::string, unsigned int> sigraph::DBLearnable::_labels_to_indices
protected

info labels -> indices

Definition at line 115 of file dbLearnable.h.

Referenced by getIndiceFromLabel(), and setLabels().

◆ _owned_data

bool sigraph::DBLearnable::_owned_data
protected

data are owned by database

Definition at line 113 of file dbLearnable.h.

Referenced by DBLearnable(), and operator=().

◆ _size

int sigraph::DBLearnable::_size
protected

number of vectors

Definition at line 109 of file dbLearnable.h.

Referenced by DBLearnable(), operator=(), and size().

◆ _X

double* sigraph::DBLearnable::_X
protected

X data matrix.

Definition at line 103 of file dbLearnable.h.

Referenced by DBLearnable(), getX(), and operator=().

◆ _Y

double* sigraph::DBLearnable::_Y
protected

Y data matrix.

Definition at line 105 of file dbLearnable.h.

Referenced by DBLearnable(), getY(), and operator=().


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