pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::Landmarks Struct Reference

FarthestPointLandmarks()'s result. More...

#include <landmarks.hpp>

Collaboration diagram for pulsatrix::Landmarks:

Public Member Functions

ErrorTerm SubsamplingTerm () const
 The error term subsampling adds to a diagram of the landmarks, as a bound on its bottleneck distance from the whole cloud's: twice the certified covering radius.
 

Public Attributes

std::vector< int64_t > indices
 The landmarks' row indices, in the order they were picked.
 
std::vector< int64_t > nearest
 For each point, the position in indices of its nearest landmark.
 
std::vector< double > distance_to_nearest
 For each point, its distance to that landmark.
 
std::vector< double > insertion_radii
 insertion_radii[k]: the covering radius before landmark k was added, which is its distance to the landmarks before it (infinity for the first). Non-increasing: plot it to choose a count.
 
Certified< double > covering_radius
 The covering radius, max over points of distance_to_nearest, with the float32 error of the distances behind it as its term: the exact covering radius is at most value + bound().
 

Detailed Description

Member Function Documentation

◆ SubsamplingTerm()

ErrorTerm pulsatrix::Landmarks::SubsamplingTerm ( ) const
inline

The error term subsampling adds to a diagram of the landmarks, as a bound on its bottleneck distance from the whole cloud's: twice the certified covering radius.

Member Data Documentation

◆ covering_radius

Certified<double> pulsatrix::Landmarks::covering_radius

The covering radius, max over points of distance_to_nearest, with the float32 error of the distances behind it as its term: the exact covering radius is at most value + bound().

◆ distance_to_nearest

std::vector<double> pulsatrix::Landmarks::distance_to_nearest

For each point, its distance to that landmark.

◆ indices

std::vector<int64_t> pulsatrix::Landmarks::indices

The landmarks' row indices, in the order they were picked.

◆ insertion_radii

std::vector<double> pulsatrix::Landmarks::insertion_radii

insertion_radii[k]: the covering radius before landmark k was added, which is its distance to the landmarks before it (infinity for the first). Non-increasing: plot it to choose a count.

◆ nearest

std::vector<int64_t> pulsatrix::Landmarks::nearest

For each point, the position in indices of its nearest landmark.


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