Class representing a cluster tree.
More...
#include <cluster_tree.hpp>
|
typedef ClusterDerived | cluster_t |
|
typedef cluster_t::bounding_box_t | bounding_box_t |
|
typedef cluster_t::location_t | location_t |
|
typedef cluster_t::idx_list_t | idx_list_t |
|
typedef std::vector< cluster_t, Eigen::aligned_allocator< cluster_t > > | cluster_vector_t |
| Type of the cluster vector.
|
|
typedef cluster_vector_t::const_iterator | iterator_t |
|
|
template<class It , class DivideDerived > |
| cluster_tree (It src_begin, It src_end, divide_base< DivideDerived > const ÷) |
| Create a cluster tree. More...
|
|
template<class It1 , class It2 , class DivideDerived > |
| cluster_tree (It1 src_begin, It1 src_end, It2 rec_begin, It2 rec_end, divide_base< DivideDerived > const ÷) |
| Create a cluster tree. More...
|
|
size_t | get_n_src_nodes () const |
|
size_t | get_n_rec_nodes () const |
|
const std::vector< size_t > & | get_leaf_indices () const |
| return vector of leaf cluster indices More...
|
|
const std::vector< size_t > & | get_leaf_src_indices () const |
|
const std::vector< size_t > & | get_leaf_rec_indices () const |
|
size_t | get_n_leaves () const |
| return number of leaf clusters More...
|
|
std::vector< idx_list_t > | get_leaf_src_index_vectors () const |
| assemble and return source leaf index vectors More...
|
|
const cluster_t & | operator[] (size_t idx) const |
| index operator returning the idx-th cluster More...
|
|
cluster_t & | operator[] (size_t idx) |
| index operator returning the idx-th cluster More...
|
|
double | get_root_diameter () const |
| return root bounding box diameter More...
|
|
size_t | get_n_levels () const |
| return number of levels More...
|
|
size_t | level_begin (size_t idx) const |
| Begin iterator to idx-th level clusters. More...
|
|
size_t | level_end (size_t idx) const |
| End iterator to idx-th level clusters. More...
|
|
size_t | get_n_clusters () const |
| return number of clusters More...
|
|
iterator_t | begin () const |
|
iterator_t | end () const |
|
void | print_debug (std::ostream &os=std::cout) const |
| Print debug information to output strean. More...
|
|
idx_list_t | get_src_ids () const |
|
const idx_list_t & | get_rec_ids () const |
|
|
static const size_t | dimension = cluster_t::dimension |
|
template<class ClusterDerived>
class NiHu::fmm::cluster_tree< ClusterDerived >
Class representing a cluster tree.
- Template Parameters
-
Definition at line 33 of file cluster_tree.hpp.
◆ cluster_tree() [1/2]
template<class ClusterDerived >
template<class It , class DivideDerived >
Create a cluster tree.
- Template Parameters
-
It | Iterator type |
DivideDerived | Cluster division method |
- Parameters
-
[in] | src_begin | Begin iterator to sources / receivers |
[in] | src_end | End iterator to sources / receivers |
Definition at line 59 of file cluster_tree.hpp.
◆ cluster_tree() [2/2]
template<class ClusterDerived >
template<class It1 , class It2 , class DivideDerived >
Create a cluster tree.
- Template Parameters
-
It1 | Source iterator type |
It2 | Receiver iterator type |
DivideDerived | Cluster division method |
- Parameters
-
[in] | src_begin | Begin iterator to sources |
[in] | src_end | End iterator to sources |
[in] | rec_begin | Begin iterator to receivers |
[in] | rec_end | End iterator to receivers |
Definition at line 75 of file cluster_tree.hpp.
◆ get_leaf_indices()
template<class ClusterDerived >
return vector of leaf cluster indices
- Returns
- vector of leaf cluster indices
Definition at line 189 of file cluster_tree.hpp.
◆ get_leaf_src_index_vectors()
template<class ClusterDerived >
assemble and return source leaf index vectors
- Returns
- vector of vectors containing leaf source indices
Definition at line 215 of file cluster_tree.hpp.
◆ get_n_clusters()
template<class ClusterDerived >
return number of clusters
- Returns
- number of clusters
Definition at line 282 of file cluster_tree.hpp.
◆ get_n_leaves()
template<class ClusterDerived >
return number of leaf clusters
- Returns
- number of leaf clusters
Definition at line 207 of file cluster_tree.hpp.
◆ get_n_levels()
template<class ClusterDerived >
return number of levels
- Returns
- number of levels. If the tree is numbered from 0 to 5 then 6 is returned.
Definition at line 253 of file cluster_tree.hpp.
◆ get_root_diameter()
template<class ClusterDerived >
return root bounding box diameter
- Returns
- root bounding box diameter
Definition at line 245 of file cluster_tree.hpp.
◆ level_begin()
template<class ClusterDerived >
Begin iterator to idx-th level clusters.
- Parameters
-
- Returns
- begin index of idx-th level clusters
Definition at line 264 of file cluster_tree.hpp.
◆ level_end()
template<class ClusterDerived >
End iterator to idx-th level clusters.
- Parameters
-
- Returns
- end index of idx-th level clusters
Definition at line 274 of file cluster_tree.hpp.
◆ operator[]() [1/2]
template<class ClusterDerived >
index operator returning the idx-th cluster
- Parameters
-
- Returns
- the idx-th cluster
Definition at line 237 of file cluster_tree.hpp.
◆ operator[]() [2/2]
template<class ClusterDerived >
index operator returning the idx-th cluster
- Parameters
-
- Returns
- the idx-th cluster
Definition at line 228 of file cluster_tree.hpp.
◆ print_debug()
template<class ClusterDerived >
Print debug information to output strean.
- Parameters
-
Definition at line 301 of file cluster_tree.hpp.
The documentation for this class was generated from the following file: