Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Math::KDTree< _DataPoint >::BinNode Class Reference

template<class _DataPoint>
class ROOT::Math::KDTree< _DataPoint >::BinNode

Definition at line 183 of file KDTree.h.

Public Member Functions

 BinNode (BaseNode *pParent=0)
 BinNode (const BinNode &copy)
virtual ~BinNode ()
virtual void EmptyBin ()
const BinNodeFindNode (const point_type &rPoint) const override
point_type GetBinCenter () const
Double_t GetBinContent () const
virtual const std::vector< tBoundary > & GetBoundaries () const
Double_t GetDensity () const
Double_t GetEffectiveEntries () const
UInt_t GetEntries () const
BaseNode *& GetParentPointer ()
Double_t GetSumw () const
Double_t GetSumw2 () const
Double_t GetVolume () const
Bool_t Insert (const point_type &rPoint) override
virtual Bool_t IsHeadNode () const
Bool_t IsInBin (const point_type &rPoint) const
Bool_t IsLeftChild () const
BaseNode *& Parent ()
const BaseNodeParent () const
void Print (int iRow=0) const override

Protected Types

typedef std::pair< value_type, value_typetBoundary

Protected Member Functions

BinNodeClone () override

Protected Attributes

std::vector< tBoundaryfBoundaries
 bin boundaries
UInt_t fEntries
 number of entries
Double_t fSumw
 sum of weights
Double_t fSumw2
 sum of weights^2

Private Member Functions

void GetClosestPoints (const point_type &, UInt_t, std::vector< std::pair< const _DataPoint *, Double_t > > &) const override
void GetPointsWithinDist (const point_type &, value_type, std::vector< const point_type * > &) const override
BaseNode *& LeftChild ()
const BaseNodeLeftChild () const
BinNodeoperator= (const BinNode &rhs)
BaseNode *& RightChild ()
const BaseNodeRightChild () const

Private Attributes

BaseNodefLeftChild
 !pointer to left child
BaseNodefParent
 !pointer to parent node
BaseNodefRightChild
 !pointer to right child
Inheritance diagram for ROOT::Math::KDTree< _DataPoint >::BinNode:
ROOT::Math::KDTree< _DataPoint >::BaseNode ROOT::Math::KDTree< _DataPoint >::TerminalNode

Member Typedef Documentation

◆ tBoundary

template<class _DataPoint>
typedef std::pair<value_type,value_type> ROOT::Math::KDTree< _DataPoint >::BinNode::tBoundary
protected

Definition at line 187 of file KDTree.h.

Constructor & Destructor Documentation

◆ BinNode() [1/2]

template<class _DataPoint>
ROOT::Math::KDTree< _DataPoint >::BinNode::BinNode ( BaseNode * pParent = 0)

Definition at line 748 of file KDTree.icc.

◆ BinNode() [2/2]

template<class _DataPoint>
ROOT::Math::KDTree< _DataPoint >::BinNode::BinNode ( const BinNode & copy)

Definition at line 760 of file KDTree.icc.

◆ ~BinNode()

template<class _DataPoint>
virtual ROOT::Math::KDTree< _DataPoint >::BinNode::~BinNode ( )
inlinevirtual

Definition at line 192 of file KDTree.h.

Member Function Documentation

◆ Clone()

template<class _DataPoint>
KDTree< _DataPoint >::BinNode * ROOT::Math::KDTree< _DataPoint >::BinNode::Clone ( )
overrideprotectedvirtual

◆ EmptyBin()

template<class _DataPoint>
void ROOT::Math::KDTree< _DataPoint >::BinNode::EmptyBin ( )
virtual

Reimplemented in ROOT::Math::KDTree< _DataPoint >::TerminalNode.

Definition at line 788 of file KDTree.icc.

◆ FindNode()

template<class _DataPoint>
const KDTree< _DataPoint >::BinNode * ROOT::Math::KDTree< _DataPoint >::BinNode::FindNode ( const point_type & rPoint) const
overridevirtual

◆ GetBinCenter()

template<class _DataPoint>
_DataPoint ROOT::Math::KDTree< _DataPoint >::BinNode::GetBinCenter ( ) const

Definition at line 826 of file KDTree.icc.

◆ GetBinContent()

template<class _DataPoint>
Double_t ROOT::Math::KDTree< _DataPoint >::BinNode::GetBinContent ( ) const
inline

Definition at line 198 of file KDTree.h.

◆ GetBoundaries()

template<class _DataPoint>
virtual const std::vector< tBoundary > & ROOT::Math::KDTree< _DataPoint >::BinNode::GetBoundaries ( ) const
inlinevirtual

Reimplemented in ROOT::Math::KDTree< _DataPoint >::TerminalNode.

Definition at line 200 of file KDTree.h.

◆ GetClosestPoints()

template<class _DataPoint>
void ROOT::Math::KDTree< _DataPoint >::BinNode::GetClosestPoints ( const point_type & ,
UInt_t ,
std::vector< std::pair< const _DataPoint *, Double_t > > &  ) const
inlineoverrideprivatevirtual

◆ GetDensity()

template<class _DataPoint>
Double_t ROOT::Math::KDTree< _DataPoint >::BinNode::GetDensity ( ) const
inline

Definition at line 204 of file KDTree.h.

◆ GetEffectiveEntries()

template<class _DataPoint>
Double_t ROOT::Math::KDTree< _DataPoint >::BinNode::GetEffectiveEntries ( ) const
inline

Definition at line 205 of file KDTree.h.

◆ GetEntries()

template<class _DataPoint>
UInt_t ROOT::Math::KDTree< _DataPoint >::BinNode::GetEntries ( ) const
inline

Definition at line 206 of file KDTree.h.

◆ GetParentPointer()

template<class _DataPoint>
KDTree< _DataPoint >::BaseNode *& ROOT::Math::KDTree< _DataPoint >::BaseNode::GetParentPointer ( )
inherited

Definition at line 520 of file KDTree.icc.

◆ GetPointsWithinDist()

template<class _DataPoint>
void ROOT::Math::KDTree< _DataPoint >::BinNode::GetPointsWithinDist ( const point_type & ,
value_type ,
std::vector< const point_type * > &  ) const
inlineoverrideprivatevirtual

◆ GetSumw()

template<class _DataPoint>
Double_t ROOT::Math::KDTree< _DataPoint >::BinNode::GetSumw ( ) const
inline

Definition at line 208 of file KDTree.h.

◆ GetSumw2()

template<class _DataPoint>
Double_t ROOT::Math::KDTree< _DataPoint >::BinNode::GetSumw2 ( ) const
inline

Definition at line 209 of file KDTree.h.

◆ GetVolume()

template<class _DataPoint>
Double_t ROOT::Math::KDTree< _DataPoint >::BinNode::GetVolume ( ) const

Definition at line 843 of file KDTree.icc.

◆ Insert()

template<class _DataPoint>
Bool_t ROOT::Math::KDTree< _DataPoint >::BinNode::Insert ( const point_type & rPoint)
overridevirtual

◆ IsHeadNode()

template<class _DataPoint>
virtual Bool_t ROOT::Math::KDTree< _DataPoint >::BaseNode::IsHeadNode ( ) const
inlinevirtualinherited

Reimplemented in ROOT::Math::KDTree< _DataPoint >::HeadNode.

Definition at line 113 of file KDTree.h.

◆ IsInBin()

template<class _DataPoint>
Bool_t ROOT::Math::KDTree< _DataPoint >::BinNode::IsInBin ( const point_type & rPoint) const

Definition at line 878 of file KDTree.icc.

◆ IsLeftChild()

template<class _DataPoint>
bool ROOT::Math::KDTree< _DataPoint >::BaseNode::IsLeftChild ( ) const
inherited

Definition at line 542 of file KDTree.icc.

◆ LeftChild() [1/2]

template<class _DataPoint>
BaseNode *& ROOT::Math::KDTree< _DataPoint >::BaseNode::LeftChild ( )
inlineprivate

Definition at line 104 of file KDTree.h.

◆ LeftChild() [2/2]

template<class _DataPoint>
const BaseNode * ROOT::Math::KDTree< _DataPoint >::BaseNode::LeftChild ( ) const
inlineprivate

Definition at line 105 of file KDTree.h.

◆ operator=()

template<class _DataPoint>
KDTree< _DataPoint >::BinNode & ROOT::Math::KDTree< _DataPoint >::BinNode::operator= ( const BinNode & rhs)
private

Definition at line 798 of file KDTree.icc.

◆ Parent() [1/2]

template<class _DataPoint>
BaseNode *& ROOT::Math::KDTree< _DataPoint >::BaseNode::Parent ( )
inlineinherited

Definition at line 106 of file KDTree.h.

◆ Parent() [2/2]

template<class _DataPoint>
const BaseNode * ROOT::Math::KDTree< _DataPoint >::BaseNode::Parent ( ) const
inlineinherited

Definition at line 107 of file KDTree.h.

◆ Print()

template<class _DataPoint>
void ROOT::Math::KDTree< _DataPoint >::BinNode::Print ( int iRow = 0) const
overridevirtual

◆ RightChild() [1/2]

template<class _DataPoint>
BaseNode *& ROOT::Math::KDTree< _DataPoint >::BaseNode::RightChild ( )
inlineprivate

Definition at line 108 of file KDTree.h.

◆ RightChild() [2/2]

template<class _DataPoint>
const BaseNode * ROOT::Math::KDTree< _DataPoint >::BaseNode::RightChild ( ) const
inlineprivate

Definition at line 109 of file KDTree.h.

Member Data Documentation

◆ fBoundaries

template<class _DataPoint>
std::vector<tBoundary> ROOT::Math::KDTree< _DataPoint >::BinNode::fBoundaries
protected

bin boundaries

Definition at line 218 of file KDTree.h.

◆ fEntries

template<class _DataPoint>
UInt_t ROOT::Math::KDTree< _DataPoint >::BinNode::fEntries
protected

number of entries

Definition at line 221 of file KDTree.h.

◆ fLeftChild

template<class _DataPoint>
BaseNode* ROOT::Math::KDTree< _DataPoint >::BaseNode::fLeftChild
privateinherited

!pointer to left child

Definition at line 123 of file KDTree.h.

◆ fParent

template<class _DataPoint>
BaseNode* ROOT::Math::KDTree< _DataPoint >::BaseNode::fParent
privateinherited

!pointer to parent node

Definition at line 122 of file KDTree.h.

◆ fRightChild

template<class _DataPoint>
BaseNode* ROOT::Math::KDTree< _DataPoint >::BaseNode::fRightChild
privateinherited

!pointer to right child

Definition at line 124 of file KDTree.h.

◆ fSumw

template<class _DataPoint>
Double_t ROOT::Math::KDTree< _DataPoint >::BinNode::fSumw
protected

sum of weights

Definition at line 219 of file KDTree.h.

◆ fSumw2

template<class _DataPoint>
Double_t ROOT::Math::KDTree< _DataPoint >::BinNode::fSumw2
protected

sum of weights^2

Definition at line 220 of file KDTree.h.


The documentation for this class was generated from the following files: