![]() |
SemiDiscreteOT 1.0
Semi-Discrete Optimal Transport Library
|
A struct to hold all the necessary information about the target measure. More...
#include <SotSolver.h>
Public Member Functions | |
TargetMeasure ()=default | |
TargetMeasure (const std::vector< Point< spacedim > > &points_, const Vector< double > &density_) | |
Constructor for the TargetMeasure struct. | |
void | initialize_rtree () |
Initializes the R-tree with the target points. | |
Public Attributes | |
bool | initialized = false |
Flag to check if target measure is set up. | |
std::vector< Point< spacedim > > | points |
The points of the discrete target measure. | |
Vector< double > | density |
The weights of the discrete target measure. | |
RTree | rtree |
An R-tree for fast spatial queries on the target points. | |
A struct to hold all the necessary information about the target measure.
Definition at line 95 of file SotSolver.h.
|
inline |
Constructor for the TargetMeasure struct.
Definition at line 105 of file SotSolver.h.
Initializes the R-tree with the target points.
Definition at line 119 of file SotSolver.h.
Flag to check if target measure is set up.
Definition at line 96 of file SotSolver.h.
The points of the discrete target measure.
Definition at line 97 of file SotSolver.h.
The weights of the discrete target measure.
Definition at line 98 of file SotSolver.h.
An R-tree for fast spatial queries on the target points.
Definition at line 99 of file SotSolver.h.