|
LdsGen 1.2.6
|
Namespaces | |
| namespace | detail |
Classes | |
| class | Circle |
| Circle sequence generator. More... | |
| class | Disk |
| Disk sequence generator. More... | |
| class | GeneratorBase |
| CRTP base implementing the sequence generator protocol. More... | |
| class | GeneratorIterable |
| CRTP mixin adding STL iterator support to a GeneratorBase. More... | |
| class | GeneratorIterator |
| Forward iterator for sequence generators. More... | |
| class | Halton |
| Halton sequence generator. More... | |
| class | HaltonN |
| Halton(n) sequence generator. More... | |
| class | Sphere |
| Sphere sequence generator. More... | |
| class | Sphere3 |
| 3-Sphere sequence generator (standalone, returns std::array). More... | |
| class | Sphere3Hopf |
| S(3) sequence generator by Hopf fibration. More... | |
| class | SphereGen |
| Base class for sphere generators. More... | |
| class | SphereN |
| N-dimensional sphere sequence generator. More... | |
| class | SphereWrapper |
| Wrapper class to make Sphere compatible with SphereGen interface. More... | |
| class | VdCorput |
| Van der Corput sequence generator. More... | |
Concepts | |
| concept | SequenceGenerator |
| Concept for the sequence generator protocol. | |
Functions | |
| constexpr auto | vdc (unsigned long count, unsigned long base) -> double |
| Van der Corput sequence. | |
| unsigned long | dummy (unsigned int index) |
| Dummy function (placeholder, not yet implemented). | |
| void | log_with_spdlog (const std::string &message) |
| Log a message using spdlog. | |
| std::vector< double > | linspace (double start, double stop, unsigned int num) |
| Generate evenly spaced numbers over a specified interval. | |
| double | simple_interp (double x_value, std::span< const double > x_points, std::span< const double > y_points) |
| Perform one-dimensional linear interpolation. | |
| std::vector< double > | get_tp (unsigned int n) |
| Compute Tp(n) recurrence for sphere mapping. | |
Variables | |
| constexpr const auto | TWO_PI = 2.0 * M_PI |
| constexpr unsigned int | MAX_REVERSE_BITS = 64 |
| constexpr double | MAPPING_FACTOR = 2.0 |
| constexpr double | PI = M_PI |
| constexpr double | HALF_PI = M_PI / 2.0 |
| constexpr std::size_t | TABLE_SIZE = 300 |
| Number of interpolation points for sphere mapping tables. | |
| const std::array< double, TABLE_SIZE > | X |
| Precomputed interpolation tables (static storage, no heap) | |
| const std::array< double, TABLE_SIZE > | NEG_COSINE |
| const std::array< double, TABLE_SIZE > | SINE |
| const std::array< double, TABLE_SIZE > | F2 |
|
extern |
Dummy function (placeholder, not yet implemented).
| [in] | index | The input index. |
| std::vector< double > ldsgen::get_tp | ( | unsigned int | n | ) |
Compute Tp(n) recurrence for sphere mapping.
| n | The recurrence index. |
| std::vector< double > ldsgen::linspace | ( | double | start, |
| double | stop, | ||
| unsigned int | num | ||
| ) |
Generate evenly spaced numbers over a specified interval.
| void ldsgen::log_with_spdlog | ( | const std::string & | message | ) |
Log a message using spdlog.
This function provides a simple wrapper around spdlog for logging messages. It creates a file logger that writes to "ldsgen.log" and logs at the info level.
| message | The message to log |
| double ldsgen::simple_interp | ( | double | x_value, |
| std::span< const double > | x_points, | ||
| std::span< const double > | y_points | ||
| ) |
Perform one-dimensional linear interpolation.
|
constexpr |
Van der Corput sequence.
The vdc function is calculating the Van der Corput sequence value for a given index count and base base. It returns a double value.
* Base 2 Example: * count=1 -> 0.5 (0.1 in base 2) * count=2 -> 0.25 (0.01 in base 2) * count=3 -> 0.75 (0.11 in base 2) * count=4 -> 0.125(0.001 in base 2) *
| [in] | count | index of the sequence |
| [in] | base | base of the sequence |
|
extern |
|
constexpr |
|
constexpr |
|
constexpr |
|
extern |
|
constexpr |
|
extern |
|
constexpr |
Number of interpolation points for sphere mapping tables.
|
constexpr |
|
extern |
Precomputed interpolation tables (static storage, no heap)