SemiDiscreteOT 1.0
Semi-Discrete Optimal Transport Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SotSolver< dim, spacedim >::TargetMeasure Struct Reference

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< doubledensity
 The weights of the discrete target measure.
 
RTree rtree
 An R-tree for fast spatial queries on the target points.
 

Detailed Description

template<int dim, int spacedim = dim>
struct SotSolver< dim, spacedim >::TargetMeasure

A struct to hold all the necessary information about the target measure.

Definition at line 95 of file SotSolver.h.

Constructor & Destructor Documentation

◆ TargetMeasure() [1/2]

template<int dim, int spacedim = dim>
SotSolver< dim, spacedim >::TargetMeasure::TargetMeasure ( )
default

◆ TargetMeasure() [2/2]

template<int dim, int spacedim = dim>
SotSolver< dim, spacedim >::TargetMeasure::TargetMeasure ( const std::vector< Point< spacedim > > &  points_,
const Vector< double > &  density_ 
)
inline

Constructor for the TargetMeasure struct.

Definition at line 105 of file SotSolver.h.

Here is the call graph for this function:

Member Function Documentation

◆ initialize_rtree()

template<int dim, int spacedim = dim>
void SotSolver< dim, spacedim >::TargetMeasure::initialize_rtree ( )
inline

Initializes the R-tree with the target points.

Definition at line 119 of file SotSolver.h.

Here is the caller graph for this function:

Member Data Documentation

◆ initialized

template<int dim, int spacedim = dim>
bool SotSolver< dim, spacedim >::TargetMeasure::initialized = false

Flag to check if target measure is set up.

Definition at line 96 of file SotSolver.h.

◆ points

template<int dim, int spacedim = dim>
std::vector<Point<spacedim> > SotSolver< dim, spacedim >::TargetMeasure::points

The points of the discrete target measure.

Definition at line 97 of file SotSolver.h.

◆ density

template<int dim, int spacedim = dim>
Vector<double> SotSolver< dim, spacedim >::TargetMeasure::density

The weights of the discrete target measure.

Definition at line 98 of file SotSolver.h.

◆ rtree

template<int dim, int spacedim = dim>
RTree SotSolver< dim, spacedim >::TargetMeasure::rtree

An R-tree for fast spatial queries on the target points.

Definition at line 99 of file SotSolver.h.


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