A data structure enabling constant-time range queries into fixed numerical data. More...
#include <databases.hpp>
Public Member Functions | |
| KVectorIndex (DeserializeContext *des) | |
| Construct from serialized buffer. | |
| long | QueryLiberal (decimal minQueryDistance, decimal maxQueryDistance, long *upperIndex) const |
| Finds all the entries in the given range, and possibly a few just outside the range on the ends. | |
| long | NumValues () const |
| The number of data points in the data referred to by the kvector. | |
| long | NumBins () const |
| decimal | Max () const |
| Upper bound on elements. | |
| decimal | Min () const |
A data structure enabling constant-time range queries into fixed numerical data.
Definition at line 25 of file databases.hpp.
|
explicit |
Construct from serialized buffer.
Definition at line 111 of file databases.cpp.

|
inline |
Upper bound on elements.
Definition at line 35 of file databases.hpp.
|
inline |
Definition at line 37 of file databases.hpp.
|
inline |
Definition at line 33 of file databases.hpp.
|
inline |
The number of data points in the data referred to by the kvector.
Definition at line 32 of file databases.hpp.
| long lost::KVectorIndex::QueryLiberal | ( | decimal | minQueryDistance, |
| decimal | maxQueryDistance, | ||
| long * | upperIndex ) const |
Finds all the entries in the given range, and possibly a few just outside the range on the ends.
| upperIndex[out] | Is set to the index of the last returned value +1. |
Definition at line 130 of file databases.cpp.