20namespace AlignmentSubsystem
30 HaltonSequence(
int baseX = 2,
int baseY = 3) : m_baseX(baseX), m_baseY(baseY) {}
36 static double term(
int i,
int base)
42 f /=
static_cast<double>(base);
43 result += (i % base) * f;
52 std::pair<double, double>
getRaw(
int n)
const
54 return {
term(n, m_baseX),
term(n, m_baseY)};
60 return term(n, m_baseX);
66 return term(n, m_baseY);
Generic 2-D Halton quasi-random generator.
double getY(int n) const
Get the n-th value of the individual Y dimension.
HaltonSequence(int baseX=2, int baseY=3)
Construct a generator with specified prime bases.
std::pair< double, double > getRaw(int n) const
Get the n-th 2-D point in the sequence.
static double term(int i, int base)
Compute the i-th raw Halton term in the given base.
double getX(int n) const
Get the n-th value of the individual X dimension.
Namespace to encapsulate INDI client, drivers, and mediator classes.