Public Member Functions | |
| NuKDDistOrd (NuKDPt< D > q) | |
| bool | operator() (const NuKDPtWithPayload< T, D > &a, const NuKDPtWithPayload< T, D > &b) const |
Protected Attributes | |
| NuKDPt< D > | p |
Definition at line 30 of file NuKDTree.cxx.
|
||||||||||
|
Definition at line 33 of file NuKDTree.cxx. 00033 : p(q){}
|
|
||||||||||||||||
|
Definition at line 34 of file NuKDTree.cxx. References NuKDPtWithPayload< T, D >::pt, and SQR(). 00036 {
00037 float dista = 0;
00038 float distb = 0;
00039 for(unsigned int d = 0; d < D; ++d){
00040 dista += SQR(a.pt[d]-p[d]);
00041 distb += SQR(b.pt[d]-p[d]);
00042 }
00043
00044 return dista > distb;
00045 }
|
|
|||||
|
Definition at line 47 of file NuKDTree.cxx. |
1.3.9.1