8#ifndef META_OCEAN_TEST_TESTMATH_TEST_CLUSTERING_SPECTRAL_H
9#define META_OCEAN_TEST_TESTMATH_TEST_CLUSTERING_SPECTRAL_H
This class implements a generator for random numbers.
Definition RandomGenerator.h:42
This class implements a test for ClusteringSpectral.
Definition TestClusteringSpectral.h:33
static bool test(const double testDuration, const TestSelector &selector)
Executes all tests.
static bool clustersMatchGroups(const std::vector< Indices32 > &clusters, const Indices32 &groupIndices, const unsigned int numberGroups)
Returns whether the clusters are exactly the groups of the elements, in any order.
static bool testSeparatedGroups(const double testDuration)
Tests the clustering of a graph which is composed of well separated groups.
static Matrix createAffinityMatrix(const Indices32 &groupIndices, const unsigned int numberGroups, RandomGenerator &randomGenerator)
Creates the affinity matrix of a graph in which the elements of the same group are strongly connected...
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
std::vector< Index32 > Indices32
Definition of a vector holding 32 bit index values.
Definition Base.h:96
The namespace covering the entire Ocean framework.
Definition Accessor.h:15