1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
/*!
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
*/
#pragma once
#include <pyclustering/cluster/clique_block.hpp>
#include <pyclustering/cluster/cluster_data.hpp>
namespace pyclustering {
namespace clst {
/*!
@brief Sequence container where CLIQUE blocks are stored.
*/
using clique_block_sequence = std::vector<clique_block>;
/*!
@class clique_data clique_data.hpp pyclustering/cluster/clique_data.hpp
@brief A storage where CLIQUE clustering results are stored.
*/
class clique_data : public cluster_data {
private:
clique_block_sequence m_blocks;
clst::noise m_noise;
public:
/*!
@brief Returns constant reference to CLIQUE blocks that are formed during clustering process.
*/
const clique_block_sequence & blocks() const { return m_blocks; }
/*!
@brief Returns reference to CLIQUE blocks that are formed during clustering process.
*/
clique_block_sequence & blocks() { return m_blocks; }
/*!
@brief Returns constant reference to outliers that are allocated during clustering process.
*/
const clst::noise & noise() const { return m_noise; }
/*!
@brief Returns reference to outliers that are allocated during clustering process.
*/
clst::noise & noise() { return m_noise; }
};
}
}
|