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

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.
 
GoldenSpiralSampleroperator= (const GoldenSpiralSampler &)=delete
 Delete copy assignment operator.
 
VecXT< Vec3dGet (int num_samples)
 Generate a specified number of sample points.
 

Static Public Member Functions

static GoldenSpiralSamplerGetInstance ()
 Get a reference to the singleton GoldenSpiralSampler instance.
 

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

◆ GoldenSpiralSampler()

netdem::GoldenSpiralSampler::GoldenSpiralSampler ( const GoldenSpiralSampler & )
delete

Delete copy constructor.

Member Function Documentation

◆ Get()

VecXT< Vec3d > netdem::GoldenSpiralSampler::Get ( int num_samples)
inline

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.

Parameters
num_samplesThe number of sample points to generate.
Returns
A vector of generated sample points.

◆ GetInstance()

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

Get a reference to the singleton GoldenSpiralSampler instance.

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

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

◆ operator=()

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

Delete copy assignment operator.


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