Skip to main content

init_halton

Function init_halton 

Source
pub fn init_halton(
    dimensions: usize,
    num_samples: usize,
    bounds: &[(f64, f64)],
) -> Vec<Vec<f64>>
Expand description

Generate Halton quasi-random sequence for initialization.

Uses Van der Corput sequences in the first dimensions prime bases. This provides better parameter space coverage than pure random initialization and avoids the correlated-base bug of the old fallback.

§Arguments

  • dimensions - Number of dimensions (parameters)
  • num_samples - Number of samples to generate
  • bounds - Parameter bounds for scaling

§Returns

Vector of parameter vectors sampled from the quasi-random sequence