ldsgen::SphereGen class

Base class for sphere generators.

Provides a common interface for all sphere sequence generators.

Derived classes

class Sphere3
3-Sphere sequence generator
class SphereN
N-dimensional sphere sequence generator.
class SphereWrapper
Wrapper class to make Sphere compatible with SphereGen interface.

Constructors, destructors, conversion operators

~SphereGen() defaulted virtual

Public functions

auto pop() -> std::vector<double> pure virtual
Generate the next point on the sphere.
void reseed(unsigned long seed) pure virtual
Reset the state of the sphere generator.

Function documentation

std::vector<double> ldsgen::SphereGen::pop() pure virtual

Generate the next point on the sphere.

Returns std::vector<double> the next point on the sphere

Returns the next point on the sphere as a vector of double values.

void ldsgen::SphereGen::reseed(unsigned long seed) pure virtual

Reset the state of the sphere generator.

Parameters
seed in the seed value to reset the sequence generator to

Resets the state of the sequence generator to a specific seed value.