particles.qmc.halton

particles.qmc.halton(N, dim)[source]

Halton sequence.

Component i of the sequence consists of a Van der Corput sequence in base b_i, where b_i is the i-th prime number.

Parameters:
  • N (int) – length of sequence
  • dim (int) – dimension
Returns:

Return type:

(N, dim) numpy array.