latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class DBScan More...
#include <ltiDBScan.h>
Public Types | |
enum | eDistanceType |
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
virtual | ~parameters () |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual classifier::parameters * | clone () const |
bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
double | eps |
int | minPts |
int | buckedSize |
eDistanceType | distanceMeasure |
the parameters for the class DBScan
enum lti::DBScan::parameters::eDistanceType |
this function is required by MSVC only, as a workaround for a very awful bug, which exists since MSVC V.4.0, and still by V.6.0 with all bugfixes (so called "service packs") remains there.
.. This method is also public due to another bug, so please NEVER EVER call this method directly: use read() instead this function is required by MSVC only, as a workaround for a very awful bug, which exists since MSVC V.4.0, and still by V.6.0 with all bugfixes (so called "service packs") remains there... This method is also public due to another bug, so please NEVER EVER call this method directly: use write() instead
lti::DBScan< T >::parameters::parameters | ( | void | ) | [inline] |
default constructor
Reimplemented from lti::clustering::parameters.
References lti::DBScan< T >::parameters::buckedSize, lti::DBScan< T >::parameters::distanceMeasure, lti::DBScan< T >::parameters::eps, and lti::DBScan< T >::parameters::minPts.
Referenced by lti::DBScan< T >::parameters::clone().
lti::DBScan< T >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::clustering::parameters.
References lti::DBScan< T >::parameters::copy().
virtual lti::DBScan< T >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::clustering::parameters.
virtual classifier::parameters* lti::DBScan< T >::parameters::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::clustering::parameters.
References lti::DBScan< T >::parameters::parameters().
parameters& lti::DBScan< T >::parameters::copy | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::clustering::parameters.
References lti::DBScan< T >::parameters::buckedSize, lti::clustering::parameters::copy(), lti::DBScan< T >::parameters::distanceMeasure, lti::DBScan< T >::parameters::eps, and lti::DBScan< T >::parameters::minPts.
Referenced by lti::DBScan< T >::parameters::operator=(), and lti::DBScan< T >::parameters::parameters().
const char* lti::DBScan< T >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
returns name of this type
Reimplemented from lti::clustering::parameters.
parameters& lti::DBScan< T >::parameters::operator= | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::unsupervisedClassifier::parameters.
References lti::DBScan< T >::parameters::copy().
virtual bool lti::DBScan< T >::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::clustering::parameters.
References lti::DBScan< T >::parameters::buckedSize, lti::DBScan< T >::parameters::distanceMeasure, lti::DBScan< T >::parameters::eps, lti::DBScan< T >::parameters::minPts, lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().
bool lti::DBScan< T >::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::clustering::parameters.
References lti::DBScan< T >::parameters::buckedSize, lti::DBScan< T >::parameters::distanceMeasure, lti::DBScan< T >::parameters::eps, lti::DBScan< T >::parameters::minPts, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
int lti::DBScan< T >::parameters::buckedSize |
number of elements stored in each leaf of the kd-tree, which is used als internal datastructure of DBScan
Referenced by lti::DBScan< T >::parameters::copy(), lti::DBScan< T >::parameters::parameters(), lti::DBScan< T >::parameters::read(), and lti::DBScan< T >::parameters::write().
eDistanceType lti::DBScan< T >::parameters::distanceMeasure |
The kind of distance measurement that is used for computing the distances between the data points.
Values are: l1Distance, l2Distance, l2SquareDistance
Referenced by lti::DBScan< T >::parameters::copy(), lti::DBScan< T >::parameters::parameters(), lti::DBScan< T >::parameters::read(), and lti::DBScan< T >::parameters::write().
double lti::DBScan< T >::parameters::eps |
Define eps region for a point, where neighbour points must be in.
Referenced by lti::DBScan< T >::parameters::copy(), lti::DBScan< T >::parameters::parameters(), lti::DBScan< T >::parameters::read(), and lti::DBScan< T >::parameters::write().
int lti::DBScan< T >::parameters::minPts |
Number of points which have to be in the eps-neighbourhood otherwise the points are defined as noise.
Referenced by lti::DBScan< T >::parameters::copy(), lti::DBScan< T >::parameters::parameters(), lti::DBScan< T >::parameters::read(), and lti::DBScan< T >::parameters::write().