Machine Learning Library
|
Base class for all object. More...
#include <CObject.h>
Public Member Functions | |
CObject () | |
Constructor. More... | |
virtual | ~CObject () |
Destructor. More... | |
virtual bool | serialize (fstream &stream, IO_MODE mode=READ) |
Read/write from binary stream. More... | |
virtual bool | serialize2 (CArchiv &tArchiv) |
virtual string | className () const |
Returns the class name. More... | |
void | setVerbose (VERBOSE_LEVEL tVerbose) |
Set the verbose level. More... | |
VERBOSE_LEVEL | verbose (void) const |
Return current verbose level. More... | |
virtual bool | isA (const char *acClass) const |
Check if the object is an instance of the class with given name. More... | |
DATATYPE | dataType () const |
Returns the template data type. More... | |
Protected Attributes | |
unsigned char | ucVerbose |
Base class for all object.
|
inlinevirtual |
Returns the class name.
Reimplemented in CChiSquaredKernel< Type >, CAnovaKernel< Type >, CDoubleExponentialKernel< Type >, CExponentialRate< Type >, CLinearKernel< Type >, CHyperbolicMetric< Type >, CAngleMetric< Type >, CPolynomialKernel< Type >, CLinearRate< Type >, CMatrix< Type >, CCoCosineMetric< Type >, CMultiVariateGaussianKernel< Type >, CDataset< Type >, CDataset< double >, CDataset< float >, CScalarMetric< Type >, CHarmonicRate< Type >, CTriangularKernel< Type >, CMaximumMetric< Type >, CPlummerKernel< Type >, CManhattenMetric< Type >, CConstantRate< Type >, CVector< Type >, CVector< T >, CEuclideanMetric2< Type >, CDenseVector< Type >, CDenseVector< double >, CDenseVector< T >, CDatasetStatistic< Type >, CGaussianKernel< Type >, CDatasetItem< Type >, CEuclideanMetric< Type >, CLearnRate< Type >, CSparseVector< Type >, CKernel< Type >, CMetric< Type >, CMetric< double >, CProjection< Type >, and COptimizer< Type >.
Referenced by CArchiv::operator>>().
Returns the template data type.
Referenced by CDatasetItem< Type >::serialize(), and CDatasetItem< Type >::serialize2().
|
inlinevirtual |
Check if the object is an instance of the class with given name.
Reimplemented in CChiSquaredKernel< Type >, CAnovaKernel< Type >, CDoubleExponentialKernel< Type >, CExponentialRate< Type >, CLinearKernel< Type >, CHyperbolicMetric< Type >, CAngleMetric< Type >, CPolynomialKernel< Type >, CLinearRate< Type >, CCoCosineMetric< Type >, CMultiVariateGaussianKernel< Type >, CScalarMetric< Type >, CHarmonicRate< Type >, CTriangularKernel< Type >, CMaximumMetric< Type >, CPlummerKernel< Type >, CManhattenMetric< Type >, CConstantRate< Type >, CEuclideanMetric2< Type >, CGaussianKernel< Type >, CEuclideanMetric< Type >, CLearnRate< Type >, CKernel< Type >, CMetric< Type >, CMetric< double >, and COptimizer< Type >.
Referenced by CMetric< double >::isA(), CKernel< Type >::isA(), and CLearnRate< Type >::isA().
|
virtual |
Read/write from binary stream.
The functions handles different data types e.g for reading float objects in a double instance, etc.
fstream | Reference to binary stream |
mode | Switches between reading and writing |
Reimplemented in CMatrix< Type >, CDenseVector< Type >, CDenseVector< double >, CDenseVector< T >, CAnovaKernel< Type >, CDatasetItem< Type >, CPolynomialKernel< Type >, CDataset< Type >, CDataset< double >, CDataset< float >, CPlummerKernel< Type >, CVector< Type >, CVector< T >, CClusterAlgorithm< Type >, CLearnRate< Type >, and CKernel< Type >.
Referenced by CDatasetItem< Type >::serialize().
Reimplemented in CMatrix< Type >, CDenseVector< Type >, CDenseVector< double >, CDenseVector< T >, CDatasetItem< Type >, CAnovaKernel< Type >, CPolynomialKernel< Type >, CDataset< Type >, CDataset< double >, CDataset< float >, CPlummerKernel< Type >, COptimizer< Type >, and CKernel< Type >.
Referenced by CArchiv::operator>>().
|
inline |
Set the verbose level.
tVerbose | Level, OFF=0, STATUS, ERROR, DEBUG; |
|
inline |
Return current verbose level.
|
protected |