NetDEM v1.0
Loading...
Searching...
No Matches
netdem::WSCVTSampler Class Reference

A class for generating samples from a weighted spherical centroidal Voronoi tessellation. More...

#include <wscvt_sampler.hpp>

Public Member Functions

 WSCVTSampler (const WSCVTSampler &)=delete
 Delete copy constructor.
 
WSCVTSampleroperator= (const WSCVTSampler &)=delete
 Delete copy assignment operator.
 
VecXT< Vec3dGet (int num_samples, bool new_random=false)
 Generate a specified number of sample points.
 

Static Public Member Functions

static WSCVTSamplerGetInstance ()
 Get a reference to the singleton WSCVTSampler instance.
 

Public Attributes

int max_iters {10000}
 The maximum number of iterations to perform during tessellation (default: 10000).
 
double tol {1.0e-4}
 The convergence tolerance for tessellation (default: 1.0e-4).
 

Detailed Description

A class for generating samples from a weighted spherical centroidal Voronoi tessellation.

This class provides methods for generating random sample points from a weighted spherical centroidal Voronoi tessellation.

Constructor & Destructor Documentation

◆ WSCVTSampler()

netdem::WSCVTSampler::WSCVTSampler ( const WSCVTSampler & )
delete

Delete copy constructor.

Member Function Documentation

◆ Get()

VecXT< Vec3d > netdem::WSCVTSampler::Get ( int num_samples,
bool new_random = false )
inline

Generate a specified number of sample points.

This method generates a specified number of random sample points using a weighted spherical centroidal Voronoi tessellation. The optional boolean argument can be used to force the creation of a new set of samples rather than reusing an existing set.

Parameters
num_samplesThe number of sample points to generate.
new_randomA boolean value indicating whether to force the creation of a new set of samples (default: false).
Returns
A vector of generated sample points.

◆ GetInstance()

static WSCVTSampler & netdem::WSCVTSampler::GetInstance ( )
inlinestatic

Get a reference to the singleton WSCVTSampler instance.

This static method returns a reference to the singleton instance of the WSCVTSampler class.

Returns
A reference to the singleton instance of the WSCVTSampler class.

◆ operator=()

WSCVTSampler & netdem::WSCVTSampler::operator= ( const WSCVTSampler & )
delete

Delete copy assignment operator.

Member Data Documentation

◆ max_iters

int netdem::WSCVTSampler::max_iters {10000}

The maximum number of iterations to perform during tessellation (default: 10000).

◆ tol

double netdem::WSCVTSampler::tol {1.0e-4}

The convergence tolerance for tessellation (default: 1.0e-4).


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