eispac.core.scale_guess(x, y, param, n_gauss, n_poly)[source]

Scale inital guess of multigaussian model parameters to data values

  • x (array_like) – Independent variable values. For EIS data, this will usually correspond to wavelength values.

  • y (array_like) – Observed data values. ForEIS data, this will be either raw counts or calibrated intensity measurements

  • param (array_like) – Model fit parameters. There must be 3*n_gauss + n_poly param values. For each Gaussian component, the parameters are assumed to have the following order: [peak, centroid, width]

  • n_gauss (int, optional) – Number of Gaussian components. Default is “1”

  • n_poly (int, optional) – Number of background polynomial terms. Common values are: 0 (no background), 1 (constant), and 2 (linear). Default is “0”


newparam – Array of scaled model parameters.

Return type: