get_midpoint

sherpa.utils.guess.get_midpoint(a: ndarray) float[source] [edit on github]

Estimate the middle of the data.

Parameters:
aarray_like

The data points.

Returns:
ansscalar

The middle of the data.

Notes

The estimate is based on the range of the data, and not the distribution of the points.