#include <TKDTree.h>
Inheritance diagram for TKDTree< Index, Value >:
Public Member Functions | |
TKDTree () | |
TKDTree (Index npoints, Index ndim, UInt_t bsize) | |
TKDTree (Index npoints, Index ndim, UInt_t bsize, Value **data) | |
~TKDTree () | |
void | Build () |
Double_t | Distance (const Value *point, Index ind, Int_t type=2) const |
void | DistanceToNode (const Value *point, Index inode, Value &min, Value &max, Int_t type=2) |
Int_t | GetLeft (Int_t inode) const |
Int_t | GetRight (Int_t inode) const |
Int_t | GetParent (Int_t inode) const |
Index * | GetPointsIndexes (Int_t node) const |
void | GetNodePointsIndexes (Int_t node, Int_t &first1, Int_t &last1, Int_t &first2, Int_t &last2) const |
UChar_t | GetNodeAxis (Int_t id) const |
Value | GetNodeValue (Int_t id) const |
Int_t | GetNNodes () const |
Int_t | GetTotalNodes () const |
Value * | GetBoundaries () |
Value * | GetBoundariesExact () |
Value * | GetBoundary (const Int_t node) |
Value * | GetBoundaryExact (const Int_t node) |
Index | GetNPoints () |
Index | GetNDim () |
Index | GetNPointsNode (Int_t node) const |
Int_t | GetRowT0 () |
Int_t | GetCrossNode () |
smallest terminal row | |
Int_t | GetOffset () |
cross node | |
Index * | GetIndPoints () |
offset in fIndPoints | |
Index | GetBucketSize () |
void | FindNearestNeighbors (const Value *point, Int_t k, Index *ind, Value *dist) |
Index | FindNode (const Value *point) const |
void | FindPoint (Value *point, Index &index, Int_t &iter) |
void | FindInRange (Value *point, Value range, std::vector< Index > &res) |
void | FindBNodeA (Value *point, Value *delta, Int_t &inode) |
Bool_t | IsTerminal (Index inode) const |
Int_t | IsOwner () |
Value | KOrdStat (Index ntotal, Value *a, Index k, Index *index) const |
void | MakeBoundaries (Value *range=0x0) |
void | MakeBoundariesExact () |
void | SetData (Index npoints, Index ndim, UInt_t bsize, Value **data) |
Int_t | SetData (Index idim, Value *data) |
void | SetOwner (Int_t owner) |
void | Spread (Index ntotal, Value *a, Index *index, Value &min, Value &max) const |
TKDTree () | |
TKDTree (Index npoints, Index ndim, UInt_t bsize) | |
TKDTree (Index npoints, Index ndim, UInt_t bsize, Value **data) | |
~TKDTree () | |
void | Build () |
Double_t | Distance (const Value *point, Index ind, Int_t type=2) const |
void | DistanceToNode (const Value *point, Index inode, Value &min, Value &max, Int_t type=2) |
Int_t | GetLeft (Int_t inode) const |
Int_t | GetRight (Int_t inode) const |
Int_t | GetParent (Int_t inode) const |
Index * | GetPointsIndexes (Int_t node) const |
void | GetNodePointsIndexes (Int_t node, Int_t &first1, Int_t &last1, Int_t &first2, Int_t &last2) const |
UChar_t | GetNodeAxis (Int_t id) const |
Value | GetNodeValue (Int_t id) const |
Int_t | GetNNodes () const |
Int_t | GetTotalNodes () const |
Value * | GetBoundaries () |
Value * | GetBoundariesExact () |
Value * | GetBoundary (const Int_t node) |
Value * | GetBoundaryExact (const Int_t node) |
Index | GetNPoints () |
Index | GetNDim () |
Index | GetNPointsNode (Int_t node) const |
Int_t | GetRowT0 () |
Int_t | GetCrossNode () |
smallest terminal row | |
Int_t | GetOffset () |
cross node | |
Index * | GetIndPoints () |
offset in fIndPoints | |
Index | GetBucketSize () |
void | FindNearestNeighbors (const Value *point, Int_t k, Index *ind, Value *dist) |
Index | FindNode (const Value *point) const |
void | FindPoint (Value *point, Index &index, Int_t &iter) |
void | FindInRange (Value *point, Value range, std::vector< Index > &res) |
void | FindBNodeA (Value *point, Value *delta, Int_t &inode) |
Bool_t | IsTerminal (Index inode) const |
Int_t | IsOwner () |
Value | KOrdStat (Index ntotal, Value *a, Index k, Index *index) const |
void | MakeBoundaries (Value *range=0x0) |
void | MakeBoundariesExact () |
void | SetData (Index npoints, Index ndim, UInt_t bsize, Value **data) |
Int_t | SetData (Index idim, Value *data) |
void | SetOwner (Int_t owner) |
void | Spread (Index ntotal, Value *a, Index *index, Value &min, Value &max) const |
template<> | |
TClass * | Class () |
template<> | |
TClass * | Class () |
template<> | |
void | Streamer (TBuffer &R__b) |
template<> | |
void | Streamer (TBuffer &R__b) |
Protected Attributes | |
Int_t | fDataOwner |
Int_t | fNNodes |
0 - not owner, 2 - owner of the pointer array, 1 - owner of the whole 2-d array | |
Int_t | fTotalNodes |
Index | fNDim |
Index | fNDimm |
Index | fNPoints |
Index | fBucketSize |
UChar_t * | fAxis |
Value * | fValue |
Value * | fRange |
Value ** | fData |
Value * | fBoundaries |
data points | |
Index * | fIndPoints |
nodes boundaries | |
Int_t | fRowT0 |
array of points indexes | |
Int_t | fCrossNode |
smallest terminal row - first row that contains terminal nodes | |
Int_t | fOffset |
cross node - node that begins the last row (with terminal nodes only) | |
UChar_t * | fAxis |
Value * | fValue |
Value * | fRange |
Value ** | fData |
Value * | fBoundaries |
data points | |
Index * | fIndPoints |
nodes boundaries | |
Private Member Functions | |
TKDTree (const TKDTree &) | |
TKDTree< Index, Value > & | operator= (const TKDTree< Index, Value > &) |
void | CookBoundaries (const Int_t node, Bool_t left) |
void | UpdateNearestNeighbors (Index inode, const Value *point, Int_t kNN, Index *ind, Value *dist) |
void | UpdateRange (Index inode, Value *point, Value range, std::vector< Index > &res) |
TKDTree (const TKDTree &) | |
TKDTree< Index, Value > & | operator= (const TKDTree< Index, Value > &) |
void | CookBoundaries (const Int_t node, Bool_t left) |
void | UpdateNearestNeighbors (Index inode, const Value *point, Int_t kNN, Index *ind, Value *dist) |
void | UpdateRange (Index inode, Value *point, Value range, std::vector< Index > &res) |
Definition at line 11 of file TKDTree.h.
Definition at line 248 of file TKDTree.cxx.
TKDTree< Index, Value >::TKDTree | ( | Index | npoints, | |
Index | ndim, | |||
UInt_t | bsize | |||
) |
Definition at line 271 of file TKDTree.cxx.
TKDTree< Index, Value >::TKDTree | ( | Index | npoints, | |
Index | ndim, | |||
UInt_t | bsize, | |||
Value ** | data | |||
) |
Definition at line 300 of file TKDTree.cxx.
Definition at line 348 of file TKDTree.cxx.
References TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fBoundaries, TKDTree< Index, Value >::fData, TKDTree< Index, Value >::fDataOwner, TKDTree< Index, Value >::fIndPoints, TKDTree< Index, Value >::fNDim, TKDTree< Index, Value >::fRange, and TKDTree< Index, Value >::fValue.
TKDTree< Index, Value >::TKDTree | ( | const TKDTree< Index, Value > & | ) | [private] |
TKDTree< Index, Value >::TKDTree | ( | Index | npoints, | |
Index | ndim, | |||
UInt_t | bsize | |||
) |
TKDTree< Index, Value >::TKDTree | ( | Index | npoints, | |
Index | ndim, | |||
UInt_t | bsize, | |||
Value ** | data | |||
) |
TKDTree< Index, Value >::TKDTree | ( | const TKDTree< Index, Value > & | ) | [private] |
void TKDTree< Index, Value >::Build | ( | ) |
Definition at line 378 of file TKDTree.cxx.
References array, TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fBucketSize, TKDTree< Index, Value >::fCrossNode, TKDTree< Index, Value >::fData, TKDTree< Index, Value >::fIndPoints, TKDTree< Index, Value >::fNDim, TKDTree< Index, Value >::fNNodes, TKDTree< Index, Value >::fNPoints, TKDTree< Index, Value >::fOffset, Form(), TKDTree< Index, Value >::fRange, TKDTree< Index, Value >::fRowT0, TKDTree< Index, Value >::fTotalNodes, TKDTree< Index, Value >::fValue, i, RooFit::Index(), TObject::Info(), TKDTree< Index, Value >::KOrdStat(), max, min, TKDTree< Index, Value >::Spread(), xmlio::Value, and TObject::Warning().
Referenced by TKDTree< Index, Value >::SetData(), TKDTreeBinning::SetNBins(), TestBuild(), TestConstr(), TestMembers(), TestNeighbors(), TestRange(), and TestSpeed().
Double_t TKDTree< Index, Value >::Distance | ( | const Value * | point, | |
Index | ind, | |||
Int_t | type = 2 | |||
) | const |
Definition at line 591 of file TKDTree.cxx.
References TMath::Abs(), ROOT::Math::gv_detail::dist(), TKDTree< Index, Value >::fData, TKDTree< Index, Value >::fNDim, and TMath::Sqrt().
Referenced by TKDTree< Index, Value >::UpdateNearestNeighbors(), and TKDTree< Index, Value >::UpdateRange().
void TKDTree< Index, Value >::DistanceToNode | ( | const Value * | point, | |
Index | inode, | |||
Value & | min, | |||
Value & | max, | |||
Int_t | type = 2 | |||
) |
Definition at line 615 of file TKDTree.cxx.
References TMath::Abs(), TKDTree< Index, Value >::fNDimm, TKDTree< Index, Value >::GetBoundaryExact(), TMath::Sqrt(), and xmlio::Value.
Referenced by TKDTree< Index, Value >::UpdateNearestNeighbors(), and TKDTree< Index, Value >::UpdateRange().
Int_t TKDTree< Index, Value >::GetLeft | ( | Int_t | inode | ) | const [inline] |
Definition at line 26 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::MakeBoundariesExact(), TKDTree< Index, Value >::UpdateNearestNeighbors(), and TKDTree< Index, Value >::UpdateRange().
Int_t TKDTree< Index, Value >::GetRight | ( | Int_t | inode | ) | const [inline] |
Definition at line 27 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::MakeBoundariesExact(), TKDTree< Index, Value >::UpdateNearestNeighbors(), and TKDTree< Index, Value >::UpdateRange().
Index * TKDTree< Index, Value >::GetPointsIndexes | ( | Int_t | node | ) | const |
Definition at line 792 of file TKDTree.cxx.
References TKDTree< Index, Value >::fBucketSize, TKDTree< Index, Value >::fCrossNode, TKDTree< Index, Value >::fIndPoints, TKDTree< Index, Value >::fNNodes, TKDTree< Index, Value >::fOffset, and TKDTree< Index, Value >::IsTerminal().
Referenced by TKDTree< Index, Value >::MakeBoundariesExact().
void TKDTree< Index, Value >::GetNodePointsIndexes | ( | Int_t | node, | |
Int_t & | first1, | |||
Int_t & | last1, | |||
Int_t & | first2, | |||
Int_t & | last2 | |||
) | const |
Definition at line 808 of file TKDTree.cxx.
References f2, TKDTree< Index, Value >::fBucketSize, TKDTree< Index, Value >::fCrossNode, TKDTree< Index, Value >::fNNodes, TKDTree< Index, Value >::fOffset, TKDTree< Index, Value >::fTotalNodes, TKDTree< Index, Value >::GetLeft(), TKDTree< Index, Value >::GetNPointsNode(), TKDTree< Index, Value >::GetRight(), RooFit::Index(), and TKDTree< Index, Value >::IsTerminal().
Referenced by TKDTree< Index, Value >::GetNPointsNode(), TKDTree< Index, Value >::UpdateNearestNeighbors(), and TKDTree< Index, Value >::UpdateRange().
UChar_t TKDTree< Index, Value >::GetNodeAxis | ( | Int_t | id | ) | const [inline] |
Definition at line 33 of file TKDTree.h.
References TKDTree< Index, Value >::fAxis, and TKDTree< Index, Value >::fNNodes.
Value TKDTree< Index, Value >::GetNodeValue | ( | Int_t | id | ) | const [inline] |
Definition at line 34 of file TKDTree.h.
References TKDTree< Index, Value >::fNNodes, and TKDTree< Index, Value >::fValue.
Referenced by TestConstr().
Int_t TKDTree< Index, Value >::GetNNodes | ( | ) | const [inline] |
Definition at line 35 of file TKDTree.h.
References TKDTree< Index, Value >::fNNodes.
Referenced by TKDTreeBinning::SetBinsEdges(), TestConstr(), TestMembers(), and TestSpeed().
Value * TKDTree< Index, Value >::GetBoundaries | ( | ) |
Definition at line 1165 of file TKDTree.cxx.
References TKDTree< Index, Value >::fBoundaries, and TKDTree< Index, Value >::MakeBoundaries().
Value * TKDTree< Index, Value >::GetBoundariesExact | ( | ) |
Definition at line 1175 of file TKDTree.cxx.
References TKDTree< Index, Value >::fBoundaries, and TKDTree< Index, Value >::MakeBoundariesExact().
Value * TKDTree< Index, Value >::GetBoundary | ( | const Int_t | node | ) |
Definition at line 1184 of file TKDTree.cxx.
References TKDTree< Index, Value >::fBoundaries, TKDTree< Index, Value >::fNDim, and TKDTree< Index, Value >::MakeBoundaries().
Referenced by TKDTreeBinning::SetBinsEdges().
Value * TKDTree< Index, Value >::GetBoundaryExact | ( | const Int_t | node | ) |
Definition at line 1193 of file TKDTree.cxx.
References TKDTree< Index, Value >::fBoundaries, TKDTree< Index, Value >::fNDim, and TKDTree< Index, Value >::MakeBoundariesExact().
Referenced by TKDTree< Index, Value >::DistanceToNode().
Index TKDTree< Index, Value >::GetNPoints | ( | ) | [inline] |
Index TKDTree< Index, Value >::GetNDim | ( | ) | [inline] |
Index TKDTree< Index, Value >::GetNPointsNode | ( | Int_t | node | ) | const |
Definition at line 875 of file TKDTree.cxx.
References f2, TKDTree< Index, Value >::fBucketSize, TKDTree< Index, Value >::fOffset, TKDTree< Index, Value >::fTotalNodes, TKDTree< Index, Value >::GetNodePointsIndexes(), and TKDTree< Index, Value >::IsTerminal().
Referenced by TKDTree< Index, Value >::GetNodePointsIndexes(), and TKDTree< Index, Value >::MakeBoundariesExact().
Definition at line 46 of file TKDTree.h.
References TKDTree< Index, Value >::fRowT0.
Referenced by TestMembers().
smallest terminal row
Definition at line 47 of file TKDTree.h.
References TKDTree< Index, Value >::fCrossNode.
Referenced by TestMembers().
cross node
Definition at line 48 of file TKDTree.h.
References TKDTree< Index, Value >::fOffset.
Referenced by TestMembers().
Index* TKDTree< Index, Value >::GetIndPoints | ( | ) | [inline] |
offset in fIndPoints
Definition at line 49 of file TKDTree.h.
References TKDTree< Index, Value >::fIndPoints.
Index TKDTree< Index, Value >::GetBucketSize | ( | ) | [inline] |
Definition at line 50 of file TKDTree.h.
References TKDTree< Index, Value >::fBucketSize.
Referenced by TKDTreeBinning::SetBinsContent(), and TKDTreeBinning::SortBinsByDensity().
void TKDTree< Index, Value >::FindNearestNeighbors | ( | const Value * | point, | |
Int_t | k, | |||
Index * | ind, | |||
Value * | dist | |||
) |
Definition at line 523 of file TKDTree.cxx.
References TObject::Error(), i, TKDTree< Index, Value >::MakeBoundariesExact(), max, and TKDTree< Index, Value >::UpdateNearestNeighbors().
Referenced by TestNeighbors().
Index TKDTree< Index, Value >::FindNode | ( | const Value * | point | ) | const |
Definition at line 652 of file TKDTree.cxx.
References TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fValue, RooFit::Index(), and TKDTree< Index, Value >::IsTerminal().
void TKDTree< Index, Value >::FindPoint | ( | Value * | point, | |
Index & | index, | |||
Int_t & | iter | |||
) |
Definition at line 683 of file TKDTree.cxx.
References TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fBucketSize, TKDTree< Index, Value >::fCrossNode, TKDTree< Index, Value >::fData, TKDTree< Index, Value >::fIndPoints, TKDTree< Index, Value >::fNDim, TKDTree< Index, Value >::fNNodes, TKDTree< Index, Value >::fOffset, TKDTree< Index, Value >::fValue, TKDTree< Index, Value >::IsTerminal(), kFALSE, and kTRUE.
void TKDTree< Index, Value >::FindInRange | ( | Value * | point, | |
Value | range, | |||
std::vector< Index > & | res | |||
) |
Definition at line 728 of file TKDTree.cxx.
References TKDTree< Index, Value >::MakeBoundariesExact(), and TKDTree< Index, Value >::UpdateRange().
Referenced by TestRange().
void TKDTree< Index, Value >::FindBNodeA | ( | Value * | point, | |
Value * | delta, | |||
Int_t & | inode | |||
) |
Definition at line 1152 of file TKDTree.cxx.
References TMath::Abs(), TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fNNodes, and TKDTree< Index, Value >::fValue.
Bool_t TKDTree< Index, Value >::IsTerminal | ( | Index | inode | ) | const [inline] |
Definition at line 58 of file TKDTree.h.
References TKDTree< Index, Value >::fNNodes.
Referenced by TKDTree< Index, Value >::FindNode(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::GetNPointsNode(), TKDTree< Index, Value >::GetPointsIndexes(), TKDTree< Index, Value >::MakeBoundaries(), TKDTree< Index, Value >::UpdateNearestNeighbors(), and TKDTree< Index, Value >::UpdateRange().
Value TKDTree< Index, Value >::KOrdStat | ( | Index | ntotal, | |
Value * | a, | |||
Index | k, | |||
Index * | index | |||
) | const |
Definition at line 961 of file TKDTree.cxx.
References i, RooFit::Index(), j, l, and xmlio::Value.
Referenced by TKDTree< Index, Value >::Build().
void TKDTree< Index, Value >::MakeBoundaries | ( | Value * | range = 0x0 |
) |
Definition at line 1010 of file TKDTree.cxx.
References TKDTree< Index, Value >::CookBoundaries(), TKDTree< Index, Value >::fBoundaries, TKDTree< Index, Value >::fBucketSize, TKDTree< Index, Value >::fNDim, TKDTree< Index, Value >::fNDimm, TKDTree< Index, Value >::fNNodes, TKDTree< Index, Value >::fRange, TKDTree< Index, Value >::IsTerminal(), kFALSE, kTRUE, and xmlio::Value.
Referenced by TKDTree< Index, Value >::GetBoundaries(), and TKDTree< Index, Value >::GetBoundary().
void TKDTree< Index, Value >::MakeBoundariesExact | ( | ) |
Definition at line 1089 of file TKDTree.cxx.
References TKDTree< Index, Value >::fBoundaries, TKDTree< Index, Value >::fData, TKDTree< Index, Value >::fNDim, TKDTree< Index, Value >::fNDimm, TKDTree< Index, Value >::fNNodes, TKDTree< Index, Value >::fTotalNodes, TKDTree< Index, Value >::GetLeft(), TKDTree< Index, Value >::GetNPointsNode(), TKDTree< Index, Value >::GetPointsIndexes(), TKDTree< Index, Value >::GetRight(), RooFit::Index(), max, TMath::Max(), min, TMath::Min(), points, and xmlio::Value.
Referenced by TKDTree< Index, Value >::FindInRange(), TKDTree< Index, Value >::FindNearestNeighbors(), TKDTree< Index, Value >::GetBoundariesExact(), and TKDTree< Index, Value >::GetBoundaryExact().
void TKDTree< Index, Value >::SetData | ( | Index | npoints, | |
Index | ndim, | |||
UInt_t | bsize, | |||
Value ** | data | |||
) |
Definition at line 900 of file TKDTree.cxx.
References TKDTree< Index, Value >::Build(), TObject::Clear(), TKDTree< Index, Value >::fBucketSize, TKDTree< Index, Value >::fData, and TKDTree< Index, Value >::fNDim.
Referenced by TKDTreeBinning::SetTreeData(), TestConstr(), TestMembers(), TestNeighbors(), and TestRange().
Int_t TKDTree< Index, Value >::SetData | ( | Index | idim, | |
Value * | data | |||
) |
Definition at line 922 of file TKDTree.cxx.
References TObject::Error(), TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fData, TKDTree< Index, Value >::fDataOwner, TKDTree< Index, Value >::fNDim, TKDTree< Index, Value >::fValue, and xmlio::Value.
void TKDTree< Index, Value >::Spread | ( | Index | ntotal, | |
Value * | a, | |||
Index * | index, | |||
Value & | min, | |||
Value & | max | |||
) | const |
Definition at line 945 of file TKDTree.cxx.
References i, and RooFit::Index().
Referenced by TKDTree< Index, Value >::Build().
TKDTree<Index, Value>& TKDTree< Index, Value >::operator= | ( | const TKDTree< Index, Value > & | ) | [private] |
void TKDTree< Index, Value >::CookBoundaries | ( | const Int_t | node, | |
Bool_t | left | |||
) | [private] |
Definition at line 1051 of file TKDTree.cxx.
References TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fBoundaries, flag, TKDTree< Index, Value >::fNDimm, TKDTree< Index, Value >::fRange, TKDTree< Index, Value >::fValue, kFALSE, kTRUE, and xmlio::Value.
Referenced by TKDTree< Index, Value >::MakeBoundaries().
void TKDTree< Index, Value >::UpdateNearestNeighbors | ( | Index | inode, | |
const Value * | point, | |||
Int_t | kNN, | |||
Index * | ind, | |||
Value * | dist | |||
) | [private] |
Definition at line 545 of file TKDTree.cxx.
References d, TKDTree< Index, Value >::Distance(), TKDTree< Index, Value >::DistanceToNode(), f2, TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fIndPoints, TKDTree< Index, Value >::fValue, TKDTree< Index, Value >::GetLeft(), TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::GetRight(), i, RooFit::Index(), TKDTree< Index, Value >::IsTerminal(), max, min, and xmlio::Value.
Referenced by TKDTree< Index, Value >::FindNearestNeighbors().
void TKDTree< Index, Value >::UpdateRange | ( | Index | inode, | |
Value * | point, | |||
Value | range, | |||
std::vector< Index > & | res | |||
) | [private] |
Definition at line 741 of file TKDTree.cxx.
References d, TKDTree< Index, Value >::Distance(), TKDTree< Index, Value >::DistanceToNode(), f2, TKDTree< Index, Value >::fAxis, TKDTree< Index, Value >::fIndPoints, TKDTree< Index, Value >::fValue, TKDTree< Index, Value >::GetLeft(), TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::GetRight(), RooFit::Index(), TKDTree< Index, Value >::IsTerminal(), max, min, and xmlio::Value.
Referenced by TKDTree< Index, Value >::FindInRange().
void TKDTree< Index, Value >::Build | ( | ) |
Double_t TKDTree< Index, Value >::Distance | ( | const Value * | point, | |
Index | ind, | |||
Int_t | type = 2 | |||
) | const |
void TKDTree< Index, Value >::DistanceToNode | ( | const Value * | point, | |
Index | inode, | |||
Value & | min, | |||
Value & | max, | |||
Int_t | type = 2 | |||
) |
Index* TKDTree< Index, Value >::GetPointsIndexes | ( | Int_t | node | ) | const |
void TKDTree< Index, Value >::GetNodePointsIndexes | ( | Int_t | node, | |
Int_t & | first1, | |||
Int_t & | last1, | |||
Int_t & | first2, | |||
Int_t & | last2 | |||
) | const |
UChar_t TKDTree< Index, Value >::GetNodeAxis | ( | Int_t | id | ) | const [inline] |
Definition at line 33 of file TKDTree.h.
References TKDTree< Index, Value >::fAxis, and TKDTree< Index, Value >::fNNodes.
Value TKDTree< Index, Value >::GetNodeValue | ( | Int_t | id | ) | const [inline] |
Definition at line 34 of file TKDTree.h.
References TKDTree< Index, Value >::fNNodes, and TKDTree< Index, Value >::fValue.
Value* TKDTree< Index, Value >::GetBoundaries | ( | ) |
Value* TKDTree< Index, Value >::GetBoundariesExact | ( | ) |
Value* TKDTree< Index, Value >::GetBoundary | ( | const Int_t | node | ) |
Value* TKDTree< Index, Value >::GetBoundaryExact | ( | const Int_t | node | ) |
Index TKDTree< Index, Value >::GetNPoints | ( | ) | [inline] |
Index TKDTree< Index, Value >::GetNDim | ( | ) | [inline] |
Index TKDTree< Index, Value >::GetNPointsNode | ( | Int_t | node | ) | const |
smallest terminal row
Definition at line 47 of file TKDTree.h.
References TKDTree< Index, Value >::fCrossNode.
Index* TKDTree< Index, Value >::GetIndPoints | ( | ) | [inline] |
offset in fIndPoints
Definition at line 49 of file TKDTree.h.
References TKDTree< Index, Value >::fIndPoints.
Index TKDTree< Index, Value >::GetBucketSize | ( | ) | [inline] |
void TKDTree< Index, Value >::FindNearestNeighbors | ( | const Value * | point, | |
Int_t | k, | |||
Index * | ind, | |||
Value * | dist | |||
) |
Index TKDTree< Index, Value >::FindNode | ( | const Value * | point | ) | const |
void TKDTree< Index, Value >::FindPoint | ( | Value * | point, | |
Index & | index, | |||
Int_t & | iter | |||
) |
void TKDTree< Index, Value >::FindInRange | ( | Value * | point, | |
Value | range, | |||
std::vector< Index > & | res | |||
) |
void TKDTree< Index, Value >::FindBNodeA | ( | Value * | point, | |
Value * | delta, | |||
Int_t & | inode | |||
) |
Value TKDTree< Index, Value >::KOrdStat | ( | Index | ntotal, | |
Value * | a, | |||
Index | k, | |||
Index * | index | |||
) | const |
void TKDTree< Index, Value >::MakeBoundaries | ( | Value * | range = 0x0 |
) |
void TKDTree< Index, Value >::MakeBoundariesExact | ( | ) |
void TKDTree< Index, Value >::SetData | ( | Index | npoints, | |
Index | ndim, | |||
UInt_t | bsize, | |||
Value ** | data | |||
) |
Int_t TKDTree< Index, Value >::SetData | ( | Index | idim, | |
Value * | data | |||
) |
void TKDTree< Index, Value >::Spread | ( | Index | ntotal, | |
Value * | a, | |||
Index * | index, | |||
Value & | min, | |||
Value & | max | |||
) | const |
TKDTree<Index, Value>& TKDTree< Index, Value >::operator= | ( | const TKDTree< Index, Value > & | ) | [private] |
void TKDTree< Index, Value >::CookBoundaries | ( | const Int_t | node, | |
Bool_t | left | |||
) | [private] |
void TKDTree< Index, Value >::UpdateNearestNeighbors | ( | Index | inode, | |
const Value * | point, | |||
Int_t | kNN, | |||
Index * | ind, | |||
Value * | dist | |||
) | [private] |
void TKDTree< Index, Value >::UpdateRange | ( | Index | inode, | |
Value * | point, | |||
Value | range, | |||
std::vector< Index > & | res | |||
) | [private] |
Definition at line 3102 of file G__MathCore.cxx.
References ROOT::GenerateInitInstanceLocal(), and x0.
Definition at line 3136 of file G__MathCore.cxx.
References ROOT::GenerateInitInstanceLocal(), and x0.
Definition at line 3446 of file G__MathCore.cxx.
References TBuffer::IsReading(), TBuffer::ReadClassBuffer(), and TBuffer::WriteClassBuffer().
Definition at line 3516 of file G__MathCore.cxx.
References TBuffer::IsReading(), TBuffer::ReadClassBuffer(), and TBuffer::WriteClassBuffer().
Int_t TKDTree< Index, Value >::fDataOwner [protected] |
Definition at line 79 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::IsOwner(), TKDTree< Index, Value >::SetData(), TKDTree< Index, Value >::SetOwner(), and TKDTree< Index, Value >::~TKDTree().
0 - not owner, 2 - owner of the pointer array, 1 - owner of the whole 2-d array
Definition at line 80 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::FindBNodeA(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetNNodes(), TKDTree< Index, Value >::GetNodeAxis(), TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::GetNodeValue(), TKDTree< Index, Value >::GetPointsIndexes(), TKDTree< Index, Value >::IsTerminal(), TKDTree< Index, Value >::MakeBoundaries(), and TKDTree< Index, Value >::MakeBoundariesExact().
Int_t TKDTree< Index, Value >::fTotalNodes [protected] |
Definition at line 81 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::GetNPointsNode(), TKDTree< Index, Value >::GetTotalNodes(), and TKDTree< Index, Value >::MakeBoundariesExact().
Definition at line 82 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::Distance(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetBoundary(), TKDTree< Index, Value >::GetBoundaryExact(), TKDTree< Index, Value >::GetNDim(), TKDTree< Index, Value >::MakeBoundaries(), TKDTree< Index, Value >::MakeBoundariesExact(), TKDTree< Index, Value >::SetData(), and TKDTree< Index, Value >::~TKDTree().
Definition at line 83 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::CookBoundaries(), TKDTree< Index, Value >::DistanceToNode(), TKDTree< Index, Value >::MakeBoundaries(), and TKDTree< Index, Value >::MakeBoundariesExact().
Definition at line 84 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), and TKDTree< Index, Value >::GetNPoints().
Index TKDTree< Index, Value >::fBucketSize [protected] |
Definition at line 85 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetBucketSize(), TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::GetNPointsNode(), TKDTree< Index, Value >::GetPointsIndexes(), TKDTree< Index, Value >::MakeBoundaries(), and TKDTree< Index, Value >::SetData().
Definition at line 86 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::CookBoundaries(), TKDTree< Index, Value >::FindBNodeA(), TKDTree< Index, Value >::FindNode(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetNodeAxis(), TKDTree< Index, Value >::SetData(), TKDTree< Index, Value >::UpdateNearestNeighbors(), TKDTree< Index, Value >::UpdateRange(), and TKDTree< Index, Value >::~TKDTree().
Definition at line 87 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::CookBoundaries(), TKDTree< Index, Value >::FindBNodeA(), TKDTree< Index, Value >::FindNode(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetNodeValue(), TKDTree< Index, Value >::SetData(), TKDTree< Index, Value >::UpdateNearestNeighbors(), TKDTree< Index, Value >::UpdateRange(), and TKDTree< Index, Value >::~TKDTree().
Definition at line 89 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::CookBoundaries(), TKDTree< Index, Value >::MakeBoundaries(), and TKDTree< Index, Value >::~TKDTree().
Definition at line 90 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::Distance(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::MakeBoundariesExact(), TKDTree< Index, Value >::SetData(), and TKDTree< Index, Value >::~TKDTree().
Value* TKDTree< Index, Value >::fBoundaries [protected] |
data points
Definition at line 91 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::CookBoundaries(), TKDTree< Index, Value >::GetBoundaries(), TKDTree< Index, Value >::GetBoundariesExact(), TKDTree< Index, Value >::GetBoundary(), TKDTree< Index, Value >::GetBoundaryExact(), TKDTree< Index, Value >::MakeBoundaries(), TKDTree< Index, Value >::MakeBoundariesExact(), and TKDTree< Index, Value >::~TKDTree().
Index* TKDTree< Index, Value >::fIndPoints [protected] |
nodes boundaries
Definition at line 94 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetIndPoints(), TKDTree< Index, Value >::GetPointsIndexes(), TKDTree< Index, Value >::UpdateNearestNeighbors(), TKDTree< Index, Value >::UpdateRange(), and TKDTree< Index, Value >::~TKDTree().
array of points indexes
Definition at line 95 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), and TKDTree< Index, Value >::GetRowT0().
Int_t TKDTree< Index, Value >::fCrossNode [protected] |
smallest terminal row - first row that contains terminal nodes
Definition at line 96 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetCrossNode(), TKDTree< Index, Value >::GetNodePointsIndexes(), and TKDTree< Index, Value >::GetPointsIndexes().
cross node - node that begins the last row (with terminal nodes only)
Definition at line 97 of file TKDTree.h.
Referenced by TKDTree< Index, Value >::Build(), TKDTree< Index, Value >::FindPoint(), TKDTree< Index, Value >::GetNodePointsIndexes(), TKDTree< Index, Value >::GetNPointsNode(), TKDTree< Index, Value >::GetOffset(), and TKDTree< Index, Value >::GetPointsIndexes().
Value* TKDTree< Index, Value >::fBoundaries [protected] |
Index* TKDTree< Index, Value >::fIndPoints [protected] |