|
QDpy
|
ARCHIVE-BASED CLASSES ########### {{{1. More...
Public Member Functions | |
| query (self, individual, parents, k, get_features) | |
| Return the mean of the k nearest distances and the first reference index. | |
Static Protected Member Functions | |
| _coordinates (features) | |
| Expose coordinates without copying a built-in feature tuple. | |
ARCHIVE-BASED CLASSES ########### {{{1.
Cache an exact Euclidean index over a stable prefix of parent descriptors.
Keep a small tail for new entries and rebuild if older rows change.
Definition at line 43 of file archives.py.
| qdpy.containers.archives._EuclideanNoveltyIndex.query | ( | self, | |
| individual, | |||
| parents, | |||
| k, | |||
| get_features ) |
Return the mean of the k nearest distances and the first reference index.
Recompute distances with math.dist and break ties in parent order.
Definition at line 58 of file archives.py.