Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::Statistics::NearestNeighbors Class Template Reference

data structure for storing k-nearest neighbor search result (k number of Neighbors). More...

#include <itkKdTree.h>

List of all members.

Public Methods

 NearestNeighbors ()
 ~NearestNeighbors ()
double GetLargestDistance ()
InstanceIdentifierVectorType GetNeighbors ()
InstanceIdentifier GetNeighbor (unsigned int index)
std::vector< double > & GetDistances ()
void resize (unsigned int k)
void ReplaceFarthestNeighbor (InstanceIdentifier id, double distance)


Detailed Description

data structure for storing k-nearest neighbor search result (k number of Neighbors).

This class stores the instance identifiers and the distance values of k-nearest neighbors. We can also query the farthest neighbor's distance from the query point using the GetLargestDistance method.

Definition at line 369 of file itkKdTree.h.


Constructor & Destructor Documentation

itk::Statistics::NearestNeighbors::NearestNeighbors   [inline]
 

Constructor

Definition at line 373 of file itkKdTree.h.

itk::Statistics::NearestNeighbors::~NearestNeighbors   [inline]
 

Destructor

Definition at line 376 of file itkKdTree.h.


Member Function Documentation

std::vector< double >& itk::Statistics::NearestNeighbors::GetDistances   [inline]
 

Returns the vector of k-neighbors' instance identifiers

Definition at line 423 of file itkKdTree.h.

double itk::Statistics::NearestNeighbors::GetLargestDistance   [inline]
 

Returns the distance of the farthest neighbor from the query point

Definition at line 391 of file itkKdTree.h.

InstanceIdentifier itk::Statistics::NearestNeighbors::GetNeighbor unsigned int    index [inline]
 

Returns the instance identifier of the index-th neighbor among k-neighbors

Definition at line 419 of file itkKdTree.h.

InstanceIdentifierVectorType itk::Statistics::NearestNeighbors::GetNeighbors   [inline]
 

Returns the vector of k-neighbors' instance identifiers

Definition at line 414 of file itkKdTree.h.

void itk::Statistics::NearestNeighbors::ReplaceFarthestNeighbor InstanceIdentifier    id,
double    distance
[inline]
 

Replaces the farthest neighbor's instance identifier and distance value with the id and the distance

Definition at line 396 of file itkKdTree.h.

void itk::Statistics::NearestNeighbors::resize unsigned int    k [inline]
 

Initialize the internal instance identifier and distance holders with the size, k

Definition at line 380 of file itkKdTree.h.


The documentation for this class was generated from the following file:
Generated at Tue Sep 16 11:42:45 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000