26 #ifndef CKERNELCACHE_H
27 #define CKERNELCACHE_H
42 TCachedItem* ptPreItem;
43 TCachedItem* ptSucItem;
67 Type tMaxMegaByte = 10);
104 virtual string className()
const {
return "CKernelCache";};
TCachedItem ** pptCachedItems
Definition: CKernelCache.h:49
int iNumItemsToUse
Definition: CKernelCache.h:56
void calculateRow(CDenseVector< Type > *ptRow, int iIndex)
Type tDTPos
Definition: CKernelCache.h:57
virtual bool isA(const char *acClass) const
Check if the object is an instance of the class with given name.
Definition: CKernelCache.h:105
void reorganize(int iSubsetSize=-1)
const CDenseVector< Type > * requestRow(int i1, vector< int > *ptActiveCols=NULL)
int iNumCachedRows
Definition: CKernelCache.h:55
void setDiagonalTerm(Type tDT)
TCachedItem * ptStorageHead
Definition: CKernelCache.h:50
void setKernel(CKernel< Type > *ptKernel)
int iMaxRows
Definition: CKernelCache.h:54
TCachedItem * ptStorageEnd
Definition: CKernelCache.h:51
virtual string className() const
Returns the class name.
Definition: CKernelCache.h:104
Definition: CKernelCache.h:39
Type tDTNeg
Definition: CKernelCache.h:57
Definition: CSVCandidate.h:59
Type tCacheSize
Definition: CKernelCache.h:53
Base class for kernel functions Base class for kernel function used for example by the support vector...
Definition: CKernel.h:46
static void threadFunction(void *pvData)
Template object for vectors of single and double precision and integer.
Definition: CDenseVector.h:37
bool bFastGaussian
Definition: CKernelCache.h:58
void setCacheSize(Type tSize)
Definition: CKernelCache.h:102
Base class for all object.
Definition: CObject.h:51
virtual bool isA(const char *acClass) const
Check if the object is an instance of the class with given name.
Definition: CObject.h:93
CKernelCache(CKernel< Type > *pptKernel, vector< CSVCandidate< Type > > *ptDataset, Type tDTPos=0, Type tDTNeg=0, Type tMaxMegaByte=10)
CKernel< Type > * ptKernel
Definition: CKernelCache.h:62
vector< CSVCandidate< Type > > * ptDataset
Definition: CKernelCache.h:61