pypomp.core.pomp.Pomp.sample_params

static Pomp.sample_params(param_bounds: dict[str, tuple[float, float]], n: int, key: Array) list[dict[str, float]][source]

Samples multiple sets of parameters from independent uniform distributions.

This utility method generates random parameter vectors within specified lower and upper bounds. It is commonly used to create initial parameter guesses or ‘starting points’ for global optimization.

Parameters:
  • param_bounds (dict) – Dictionary mapping parameter names to (lower, upper) bounds

  • n (int) – Number of parameter sets to sample

  • key (jax.Array) – JAX random key for reproducibility

Returns:

List of n dictionaries containing sampled parameters

Return type:

list[dict]