ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:

Go to the source code of this file.

Functions

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 TestSpeed (Int_t npower2, Int_t bsize)
 Test of building time of kdTree. More...
 
Float_t Mem ()
 
void kDTreeTest ()
 
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 ()
 
int main (int argc, char **argv)
 

Variables

bool showGraphics = false
 

Function Documentation

void kDTreeTest ( )

Definition at line 48 of file kDTreeTest.cxx.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 557 of file kDTreeTest.cxx.

Float_t Mem ( )

Definition at line 35 of file kDTreeTest.cxx.

Referenced by TestBuild(), and TestConstr().

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.

Referenced by kDTreeTest().

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.

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.

void TestNeighbors ( )

Test TKDTree::FindNearestNeighbors() function.

Definition at line 384 of file kDTreeTest.cxx.

void TestRange ( )

Definition at line 471 of file kDTreeTest.cxx.

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

Test of building time of kdTree.

Definition at line 226 of file kDTreeTest.cxx.

Referenced by kDTreeTest().

Variable Documentation

bool showGraphics = false

Definition at line 23 of file kDTreeTest.cxx.

Referenced by main(), and TestSpeed().