Class: Halton::Sequence
- Inherits:
-
Object
- Object
- Halton::Sequence
- Defined in:
- lib/halton.rb
Overview
Halton::Sequence implements the fast generation of Halton sequences. The method of generation is adapted from “Fast, portable, and reliable algorithm for the calculation of Halton numbers” by Miroslav Kolář and Seamus F. O’Shea.
This class is implemented as a stateful iterator, a pattern not common in Ruby. The Halton::each method provides a more friendly interface to this class.