class QCCache

"Cache" used by the Quadratic Constrained Trainer (QCTrainer).

Inheritance:


Public Methods

[more] QCCache()
[more]virtual real* adressCache(int index) = 0
Returns the adress of the row/column index for the Q matrix
[more]virtual void allocate() = 0
Allocate the cache
[more]virtual void clear() = 0
Erase the cache (but don't destroy it)
[more]virtual void destroy() = 0
Destroy the cache
[more]virtual void setActiveVariables(int* active_var_, int n_active_var_) = 0
Set the active variables to be those contained in active_var.


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

"Cache" used by the Quadratic Constrained Trainer (QCTrainer). This class provides the Q (symetric) matrix of the quadratic problem.

o QCCache()

ovirtual real* adressCache(int index) = 0
Returns the adress of the row/column index for the Q matrix

ovirtual void allocate() = 0
Allocate the cache

ovirtual void clear() = 0
Erase the cache (but don't destroy it)

ovirtual void destroy() = 0
Destroy the cache

ovirtual void setActiveVariables(int* active_var_, int n_active_var_) = 0
Set the active variables to be those contained in active_var. The number of active variable is given by n_active_var_.

(It's usefull for some problems)

See Also:
QCMachine
QCTrainer


Direct child classes:
SVMCache
Author:
Ronan Collobert (collober@idiap.ch)
See Also:
QCTrainer

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.