NetDEM v1.0
|
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. | |
WSCVTSampler & | operator= (const WSCVTSampler &)=delete |
Delete copy assignment operator. | |
VecXT< Vec3d > | Get (int num_samples, bool new_random=false) |
Generate a specified number of sample points. | |
Static Public Member Functions | |
static WSCVTSampler & | GetInstance () |
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). | |
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.
|
delete |
Delete copy constructor.
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.
num_samples | The number of sample points to generate. |
new_random | A boolean value indicating whether to force the creation of a new set of samples (default: false). |
|
inlinestatic |
Get a reference to the singleton WSCVTSampler instance.
This static method returns a reference to the singleton instance of the WSCVTSampler class.
|
delete |
Delete copy assignment operator.
int netdem::WSCVTSampler::max_iters {10000} |
The maximum number of iterations to perform during tessellation (default: 10000).
double netdem::WSCVTSampler::tol {1.0e-4} |
The convergence tolerance for tessellation (default: 1.0e-4).