Logo ROOT   6.10/09
Reference Guide
Functions | Variables
kDTreeTest.cxx File Reference
#include "TSystem.h"
#include "TMatrixD.h"
#include "TRandom.h"
#include "TGraph.h"
#include "TStopwatch.h"
#include "TKDTree.h"
#include "TApplication.h"
#include "TCanvas.h"
#include <iostream>
Include dependency graph for kDTreeTest.cxx:

Functions

void kDTreeTest ()
 
int main (int argc, char **argv)
 
Float_t Mem ()
 
void TestBuild (const Int_t npoints, const Int_t bsize)
 Test kdTree for memory leaks. More...
 
void TestConstr (const Int_t npoints, const Int_t bsize)
 compare the results of different data setting functions nothing printed - all works correctly More...
 
void TestMembers ()
 This is not really a test, it's a function that illustrates the internal behaviour of the kd-tree. More...
 
void TestNeighbors ()
 Test TKDTree::FindNearestNeighbors() function. More...
 
void TestRange ()
 
void TestSpeed (Int_t npower2, Int_t bsize)
 Test of building time of kdTree. More...
 

Variables

bool showGraphics = false
 

Function Documentation

◆ kDTreeTest()

void kDTreeTest ( )

Definition at line 48 of file kDTreeTest.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 557 of file kDTreeTest.cxx.

◆ Mem()

Float_t Mem ( )

Definition at line 35 of file kDTreeTest.cxx.

◆ TestBuild()

void TestBuild ( const Int_t  npoints = 1000000,
const Int_t  bsize = 100 
)

Test kdTree for memory leaks.

Definition at line 61 of file kDTreeTest.cxx.

◆ TestConstr()

void TestConstr ( const Int_t  npoints = 1000000,
const Int_t  bsize = 100 
)

compare the results of different data setting functions nothing printed - all works correctly

Definition at line 183 of file kDTreeTest.cxx.

◆ TestMembers()

void TestMembers ( )

This is not really a test, it's a function that illustrates the internal behaviour of the kd-tree.

Print out the internal kd-tree data-members, like fCrossNode, for better understading

Definition at line 89 of file kDTreeTest.cxx.

◆ TestNeighbors()

void TestNeighbors ( )

Test TKDTree::FindNearestNeighbors() function.

Definition at line 384 of file kDTreeTest.cxx.

◆ TestRange()

void TestRange ( )

Definition at line 471 of file kDTreeTest.cxx.

◆ TestSpeed()

void TestSpeed ( Int_t  npower2 = 20,
Int_t  bsize = 10 
)

Test of building time of kdTree.

Definition at line 226 of file kDTreeTest.cxx.

Variable Documentation

◆ showGraphics

bool showGraphics = false

Definition at line 23 of file kDTreeTest.cxx.