The sherpa.utils.guess module

Routines related to estimating initial parameter values and limits.

Added in version 4.17.0: In prior versions these routines were provided by sherpa.utils.

Constants

_guess_ampl_scale

The scaling applied to a value to create its range.

Functions

get_midpoint(a)

Estimate the middle of the data.

get_peak(y, x[, xhi])

Estimate the peak position of the data.

get_valley(y, x[, xhi])

Estimate the position of the minimum of the data.

get_fwhm(y, x[, xhi])

Estimate the width of the data.

guess_fwhm(y, x[, xhi, scale])

Estimate the value and valid range for the FWHM of the data.

param_apply_limits(param_limits, par[, ...])

Apply the given limits to a parameter.

get_amplitude_position(arr[, mean])

Guess model amplitude and position of array returns (xval, xmin, xmax, xpos)

guess_amplitude(y, x[, xhi])

Guess model parameter amplitude (val, min, max)

guess_amplitude_at_ref(r, y, x[, xhi])

Guess model parameter amplitude (val, min, max)

guess_amplitude2d()

Guess 2D model parameter amplitude (val, min, max)

guess_reference(pmin, pmax, x[, xhi])

Guess model parameter reference (val, min, max)

get_position(y, x[, xhi])

Get 1D model parameter positions pos (val, min, max)

guess_position()

Guess 2D model parameter positions xpos, ypos ({val0, min0, max0},

guess_bounds()

Guess the bounds of a parameter from the independent axis.

guess_reference(pmin, pmax, x[, xhi])

Guess model parameter reference (val, min, max)