mlpack
Classes | Macros | Functions
dbscan_test.cpp File Reference
#include <string>
#include <mlpack/core.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include "test_helper.hpp"
#include <mlpack/methods/dbscan/dbscan_main.cpp>
#include "../catch.hpp"
#include "../test_catch_tools.hpp"
Include dependency graph for dbscan_test.cpp:

Classes

struct  DBSCANTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANOutputDimensionTest", "[DBSCANMainTest][BindingTests]")
 Check that number of output labels and number of input points are equal.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANEpsilonTest", "[DBSCANMainTest][BindingTests]")
 Check that radius of search(epsilon) is always non-negative.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANMinSizeTest", "[DBSCANMainTest][BindingTests]")
 Check that minimum size of cluster is always non-negative.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANClusterNumberTest", "[DBSCANMainTest][BindingTests]")
 Check that no point is labelled as noise point when min_size is equal to 1.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANDiffEpsilonTest", "[DBSCANMainTest][BindingTests]")
 Check that the cluster assignment is different for different values of epsilon.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANDiffMinSizeTest", "[DBSCANMainTest][BindingTests]")
 Check that the cluster assignment is different for different values of Min Size.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANTreeTypeTest", "[DBSCANMainTest][BindingTests]")
 Check that the tree type should be from the given list of tree types. More...
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANDiffTreeTypeTest", "[DBSCANMainTest][BindingTests]")
 Check that the assignment of cluster is same if different tree type is used for search.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANSingleTreeTest", "[DBSCANMainTest][BindingTests]")
 Check that the assignment of cluster is same if single tree is used for search.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANNaiveSearchTest", "[DBSCANMainTest][BindingTests]")
 Check that the assignment of cluster is same if single tree is used for search.
 
 TEST_CASE_METHOD (DBSCANTestFixture, "DBSCANRandomSelectionFlagTest", "[DBSCANMainTest][BindingTests]")
 Check that the assignment of cluster is different if point selection policies are different.
 

Detailed Description

Author
Nikhil Goel

Test mlpackMain() of dbscan_main.cpp.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Function Documentation

◆ TEST_CASE_METHOD()

TEST_CASE_METHOD ( DBSCANTestFixture  ,
"DBSCANTreeTypeTest"  ,
""  [DBSCANMainTest][BindingTests] 
)

Check that the tree type should be from the given list of tree types.

’kd’, ’r’, ’r-star’, ’x’, ’hilbert-r’, ’r-plus’, ’r-plus-plus’, ’cover’, ’ball’.