NaiveOrthoRangeSearch< T > Class Template Reference

Naive orthogonal range search class. More...

List of all members.

Public Member Functions

void Compute (const GenMatrix< T > &low_coord_limits, const GenMatrix< T > &high_coord_limits, GenMatrix< bool > *search_results)
 The main computation of naive orthogonal range search.
void Init (const GenMatrix< T > &data)
 Initialize the computation object.
 NaiveOrthoRangeSearch ()
 Constructor which does not do anything.
 ~NaiveOrthoRangeSearch ()
 Destructor which does not do anything.

Detailed Description

template<typename T>
class NaiveOrthoRangeSearch< T >

Naive orthogonal range search class.

    NaiveOrthoRangeSearch search;
    search.Init(dataset);
    search.Compute(low_coord_limits, high_coord_limits);

    GenMatrix<bool> naive_search_results;

    // Make sure that the vector is uninitialized before passing.
    search.get_results(&naive_search_results);

Definition at line 60 of file naive_ortho_range_search.h.


Constructor & Destructor Documentation

template<typename T>
NaiveOrthoRangeSearch< T >::NaiveOrthoRangeSearch (  )  [inline]

Constructor which does not do anything.

Definition at line 77 of file naive_ortho_range_search.h.

template<typename T>
NaiveOrthoRangeSearch< T >::~NaiveOrthoRangeSearch (  )  [inline]

Destructor which does not do anything.

Definition at line 81 of file naive_ortho_range_search.h.


Member Function Documentation

template<typename T>
void NaiveOrthoRangeSearch< T >::Compute ( const GenMatrix< T > &  low_coord_limits,
const GenMatrix< T > &  high_coord_limits,
GenMatrix< bool > *  search_results 
) [inline]

The main computation of naive orthogonal range search.

Parameters:
low_coord_limits The lower coordinate range of the search window.
high_coord_limits The upper coordinate range of the search window.
search_results Stores the search results for each search window.

Definition at line 102 of file naive_ortho_range_search.h.

References fx_timer_start(), fx_timer_stop(), GenMatrix< T >::get(), GenMatrix< T >::Init(), and GenMatrix< T >::n_cols().

Referenced by main().

template<typename T>
void NaiveOrthoRangeSearch< T >::Init ( const GenMatrix< T > &  data  )  [inline]

Initialize the computation object.

Parameters:
data The data used for orthogonal range search.

Definition at line 89 of file naive_ortho_range_search.h.

Referenced by main().


The documentation for this class was generated from the following file:
Generated on Mon Jan 24 12:04:40 2011 for FASTlib by  doxygen 1.6.3