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

itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors Class Reference

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

#include <itkKdTree.h>

List of all members.

Public Member Functions

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


Detailed Description

template<class TSample>
class itk::Statistics::KdTree< TSample >::NearestNeighbors

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 416 of file Numerics/Statistics/itkKdTree.h.


Constructor & Destructor Documentation

template<class TSample >
itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::NearestNeighbors (  )  [inline]

Constructor

Definition at line 420 of file Numerics/Statistics/itkKdTree.h.

template<class TSample >
itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::~NearestNeighbors (  )  [inline]

Destructor

Definition at line 423 of file Numerics/Statistics/itkKdTree.h.

template<class TSample >
itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::NearestNeighbors (  )  [inline]

Constructor

Definition at line 476 of file Review/Statistics/itkKdTree.h.

template<class TSample >
itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::~NearestNeighbors (  )  [inline]

Destructor

Definition at line 479 of file Review/Statistics/itkKdTree.h.


Member Function Documentation

template<class TSample >
const std::vector< double >& itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::GetDistances (  )  const [inline]

Returns the vector of k-neighbors' instance identifiers

Definition at line 532 of file Review/Statistics/itkKdTree.h.

template<class TSample >
const std::vector< double >& itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::GetDistances (  )  const [inline]

Returns the vector of k-neighbors' instance identifiers

Definition at line 470 of file Numerics/Statistics/itkKdTree.h.

template<class TSample >
double itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::GetLargestDistance (  )  [inline]

Returns the distance of the farthest neighbor from the query point

Definition at line 494 of file Review/Statistics/itkKdTree.h.

template<class TSample >
double itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::GetLargestDistance (  )  [inline]

Returns the distance of the farthest neighbor from the query point

Definition at line 438 of file Numerics/Statistics/itkKdTree.h.

template<class TSample >
InstanceIdentifier itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::GetNeighbor ( unsigned int  index  )  const [inline]

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

Definition at line 526 of file Review/Statistics/itkKdTree.h.

template<class TSample >
InstanceIdentifier itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::GetNeighbor ( unsigned int  index  )  const [inline]

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

Definition at line 466 of file Numerics/Statistics/itkKdTree.h.

template<class TSample >
const InstanceIdentifierVectorType& itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::GetNeighbors (  )  const [inline]

Returns the vector of k-neighbors' instance identifiers

Definition at line 519 of file Review/Statistics/itkKdTree.h.

template<class TSample >
const InstanceIdentifierVectorType& itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::GetNeighbors (  )  const [inline]

Returns the vector of k-neighbors' instance identifiers

Definition at line 461 of file Numerics/Statistics/itkKdTree.h.

template<class TSample >
void itk::Statistics::KdTree< TSample >::KdTree::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 501 of file Review/Statistics/itkKdTree.h.

template<class TSample >
void itk::Statistics::KdTree< TSample >::KdTree::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 443 of file Numerics/Statistics/itkKdTree.h.

template<class TSample >
void itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::resize ( unsigned int  k  )  [inline]

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

Definition at line 483 of file Review/Statistics/itkKdTree.h.

template<class TSample >
void itk::Statistics::KdTree< TSample >::KdTree::NearestNeighbors::resize ( unsigned int  k  )  [inline]

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

Definition at line 427 of file Numerics/Statistics/itkKdTree.h.


The documentation for this class was generated from the following files:

Generated at Tue Sep 15 15:38:40 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000