get_midpoint

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

Estimate the middle of the data.

Parameters:

a (array_like) – The data points.

Returns:

ans – The middle of the data.

Return type:

scalar

Notes

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