NetDEM v1.0
|
A class for generating samples from a weighted spherical centroidal Voronoi tessellation. More...
#include <golden_spiral_sampler.hpp>
Public Member Functions | |
GoldenSpiralSampler (const GoldenSpiralSampler &)=delete | |
Delete copy constructor. | |
GoldenSpiralSampler & | operator= (const GoldenSpiralSampler &)=delete |
Delete copy assignment operator. | |
VecXT< Vec3d > | Get (int num_samples) |
Generate a specified number of sample points. | |
Static Public Member Functions | |
static GoldenSpiralSampler & | GetInstance () |
Get a reference to the singleton GoldenSpiralSampler instance. | |
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 the golden spiral algorithm, as referrenced in Feng, 2021, CMAME.
num_samples | The number of sample points to generate. |
|
inlinestatic |
Get a reference to the singleton GoldenSpiralSampler instance.
This static method returns a reference to the singleton instance of the GoldenSpiralSampler class.
|
delete |
Delete copy assignment operator.