exoiris.ExoIris.create_initial_population

exoiris.ExoIris.create_initial_population#

ExoIris.create_initial_population(n: int, source: str, add_noise: bool = True) ndarray[source]#

Create an initial parameter vector population for the DE optimisation.

Parameters:
  • n – Number of parameter vectors in the population.

  • source – Source of the initial population. Must be either ‘fit’ or ‘mcmc’.

  • add_noise – Flag indicating whether to add noise to the initial population. Default is True.

Returns:

The initial population.

Return type:

ndarray

Raises:

ValueError – If the source is not ‘fit’ or ‘mcmc’.