OpenANN  1.1.0
An open source library for artificial neural networks.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
BCIDataSet::BCIDataCache Class Reference

#include <BCIDataSet.h>

Public Member Functions

 BCIDataCache (int size, int D)
 Initialize the data cache. More...
 
bool hasInstance (int epoch, int offset)
 
Eigen::VectorXd & getInstance (int epoch, int offset)
 
bool hasSpace ()
 
void cacheInstance (int epoch, int offset, const Eigen::VectorXd &instance)
 
void clear ()
 

Public Attributes

size_t size
 Size in byte. More...
 
int D
 
std::map< std::pair< int, int >
, Eigen::VectorXd > 
cache
 

Constructor & Destructor Documentation

BCIDataSet::BCIDataCache::BCIDataCache ( int  size,
int  D 
)

Initialize the data cache.

Parameters
sizeSize in Megabyte.
DData dimension.

Member Function Documentation

void BCIDataSet::BCIDataCache::cacheInstance ( int  epoch,
int  offset,
const Eigen::VectorXd &  instance 
)
void BCIDataSet::BCIDataCache::clear ( )
Eigen::VectorXd & BCIDataSet::BCIDataCache::getInstance ( int  epoch,
int  offset 
)
bool BCIDataSet::BCIDataCache::hasInstance ( int  epoch,
int  offset 
)
bool BCIDataSet::BCIDataCache::hasSpace ( )

Member Data Documentation

std::map<std::pair<int, int>, Eigen::VectorXd> BCIDataSet::BCIDataCache::cache
int BCIDataSet::BCIDataCache::D
size_t BCIDataSet::BCIDataCache::size

Size in byte.


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