LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst::ap::cluster::detail::Point< K, DataT > Struct Template Reference

#include <KDTree.h>

Public Member Functions

 Point ()
 
 ~Point ()
 

Public Attributes

Eigen::Matrix< double, K, 1 > coords
 Point coordinates. More...
 
double dist
 Distance to query point. More...
 
double reach
 Reachability distance (for OPTICS). More...
 
DataT data
 Data object. More...
 
int next
 Index of next range query result or -1. More...
 
int state
 State of point ([un]processed or index in seed list) More...
 

Static Public Attributes

static int const PROCESSED = -2
 
static int const UNPROCESSED = -1
 

Detailed Description

template<int K, typename DataT>
struct lsst::ap::cluster::detail::Point< K, DataT >

An entry in the data array to be indexed using a k-d tree. It contains point coordinates, along with the following additional pieces of information:

Note that if DataT is a pointer, then it is the responsibility of calling code to ensure that the lifetimes of the objects pointed to exceed the lifetimes of any Points referencing them.

Definition at line 82 of file KDTree.h.

Constructor & Destructor Documentation

template<int K, typename DataT>
lsst::ap::cluster::detail::Point< K, DataT >::Point ( )
inline

Definition at line 93 of file KDTree.h.

93  :
94  coords(),
95  dist(std::numeric_limits<double>::quiet_NaN()),
96  reach(std::numeric_limits<double>::infinity()),
97  data(),
98  next(-1),
100  { }
double reach
Reachability distance (for OPTICS).
Definition: KDTree.h:88
static int const UNPROCESSED
Definition: KDTree.h:84
Eigen::Matrix< double, K, 1 > coords
Point coordinates.
Definition: KDTree.h:86
int next
Index of next range query result or -1.
Definition: KDTree.h:90
int state
State of point ([un]processed or index in seed list)
Definition: KDTree.h:91
DataT data
Data object.
Definition: KDTree.h:89
double dist
Distance to query point.
Definition: KDTree.h:87
template<int K, typename DataT>
lsst::ap::cluster::detail::Point< K, DataT >::~Point ( )
inline

Definition at line 102 of file KDTree.h.

102 { }

Member Data Documentation

template<int K, typename DataT>
Eigen::Matrix<double, K, 1> lsst::ap::cluster::detail::Point< K, DataT >::coords

Point coordinates.

Definition at line 86 of file KDTree.h.

template<int K, typename DataT>
DataT lsst::ap::cluster::detail::Point< K, DataT >::data

Data object.

Definition at line 89 of file KDTree.h.

template<int K, typename DataT>
double lsst::ap::cluster::detail::Point< K, DataT >::dist

Distance to query point.

Definition at line 87 of file KDTree.h.

template<int K, typename DataT>
int lsst::ap::cluster::detail::Point< K, DataT >::next

Index of next range query result or -1.

Definition at line 90 of file KDTree.h.

template<int K, typename DataT>
int const lsst::ap::cluster::detail::Point< K, DataT >::PROCESSED = -2
static

Definition at line 83 of file KDTree.h.

template<int K, typename DataT>
double lsst::ap::cluster::detail::Point< K, DataT >::reach

Reachability distance (for OPTICS).

Definition at line 88 of file KDTree.h.

template<int K, typename DataT>
int lsst::ap::cluster::detail::Point< K, DataT >::state

State of point ([un]processed or index in seed list)

Definition at line 91 of file KDTree.h.

template<int K, typename DataT>
int const lsst::ap::cluster::detail::Point< K, DataT >::UNPROCESSED = -1
static

Definition at line 84 of file KDTree.h.


The documentation for this struct was generated from the following file: