cluster::Tree02< CNode > Class Template Reference

Cluster list, i.e., all leafs are on level 0. More...

#include <tree02.hh>

Inheritance diagram for cluster::Tree02< CNode >:
cluster::Tree< CNode >

Public Types

typedef Traits::F F
 
typedef CNode Node
 Node type of the tree used for the interface of the far field matrices. More...
 
typedef TreeTraits02< CNode > Traits
 Interface of the tree. More...
 

Public Member Functions

virtual std::ostream & info (std::ostream &os) const
 
uint nclst () const
 Number of clusters. More...
 
uint nleaf () const
 Number of leafs. More...
 
const CNode * root () const
 First node of the cluster list. More...
 
const concepts::Space< F > & space () const
 Space of the tree. More...
 
 Tree02 (const concepts::Space< F > &spc, const BBall< F > &ball)
 Constructor. More...
 
 ~Tree02 ()
 

Private Member Functions

void info_ (const Node *clst, concepts::Real &rhomin, concepts::Real &rhomax, concepts::Real &taumin, concepts::Real &taumax, uint &h) const
 Computes some information used by info() More...
 

Private Attributes

uint nclst_
 Number of clusters in the tree. More...
 
uint nlf_
 Number of leafs in the tree. More...
 
CNode * root_
 First node of the cluster list. More...
 
const concepts::Space< F > & spc_
 Space of the tree. More...
 

Detailed Description

template<class CNode>
class cluster::Tree02< CNode >

Cluster list, i.e., all leafs are on level 0.

Parameters
CNodeNode type of the cluster list

Definition at line 42 of file tree02.hh.

Member Typedef Documentation

◆ F

template<class CNode >
typedef Traits::F cluster::Tree02< CNode >::F

Definition at line 46 of file tree02.hh.

◆ Node

template<class CNode >
typedef CNode cluster::Tree< CNode >::Node
inherited

Node type of the tree used for the interface of the far field matrices.

Definition at line 294 of file tree.hh.

◆ Traits

template<class CNode >
typedef TreeTraits02<CNode> cluster::Tree02< CNode >::Traits

Interface of the tree.

Definition at line 45 of file tree02.hh.

Constructor & Destructor Documentation

◆ Tree02()

template<class CNode >
cluster::Tree02< CNode >::Tree02 ( const concepts::Space< F > &  spc,
const BBall< F > &  ball 
)

Constructor.

Parameters
spcSpace which elements should be clusterd
ballBounding ball for the elements of the space

◆ ~Tree02()

template<class CNode >
cluster::Tree02< CNode >::~Tree02 ( )

Member Function Documentation

◆ info()

template<class CNode >
std::ostream & cluster::Tree< CNode >::info ( std::ostream &  os) const
virtualinherited

Definition at line 364 of file tree.hh.

◆ info_()

template<class CNode >
void cluster::Tree< CNode >::info_ ( const Node clst,
concepts::Real rhomin,
concepts::Real rhomax,
concepts::Real taumin,
concepts::Real taumax,
uint &  h 
) const
privateinherited

Computes some information used by info()

Parameters
clstNode of the tree
rhominRatio of child radius divided by cluster radius
rhomaxRatio of child radius divided by cluster radius
tauminRatio of number of leafs of the child divided by the number of leafs of the cluster
hLongest path in the tree from clst to the leafs

Definition at line 330 of file tree.hh.

◆ nclst()

template<class CNode >
uint cluster::Tree02< CNode >::nclst ( ) const
inlinevirtual

Number of clusters.

Implements cluster::Tree< CNode >.

Definition at line 56 of file tree02.hh.

◆ nleaf()

template<class CNode >
uint cluster::Tree02< CNode >::nleaf ( ) const
inlinevirtual

Number of leafs.

Implements cluster::Tree< CNode >.

Definition at line 58 of file tree02.hh.

◆ root()

template<class CNode >
const CNode* cluster::Tree02< CNode >::root ( ) const
inlinevirtual

First node of the cluster list.

Implements cluster::Tree< CNode >.

Definition at line 60 of file tree02.hh.

◆ space()

template<class CNode >
const concepts::Space<F>& cluster::Tree< CNode >::space ( ) const
inlineinherited

Space of the tree.

Definition at line 310 of file tree.hh.

Member Data Documentation

◆ nclst_

template<class CNode >
uint cluster::Tree02< CNode >::nclst_
private

Number of clusters in the tree.

Definition at line 66 of file tree02.hh.

◆ nlf_

template<class CNode >
uint cluster::Tree02< CNode >::nlf_
private

Number of leafs in the tree.

Definition at line 64 of file tree02.hh.

◆ root_

template<class CNode >
CNode* cluster::Tree02< CNode >::root_
private

First node of the cluster list.

Definition at line 68 of file tree02.hh.

◆ spc_

template<class CNode >
const concepts::Space<F>& cluster::Tree< CNode >::spc_
privateinherited

Space of the tree.

Definition at line 314 of file tree.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich