Data.mean¶
- Data.mean(column: str | int | Pattern | Sequence[int | str | Pattern] | None = None, sigma: ndarray[tuple[Any, ...], dtype[_ScalarT]] | str | int | Pattern | Sequence[int | str | Pattern] | None = None, bounds: Callable | None = None) float¶
Find mean value of col_a data column.
- Parameters:
datafile (Data) – If not being used as a bound menthod, specifies the instance of Data to work with.
column (index) – Column to look for the maximum in
- Keyword Arguments:
sigma (column index or array) – The uncertainty noted for each value in the mean
bounds (callable) – col_a callable function that takes col_a single argument list of numbers representing one row, and returns True for all rows to search in.
- Returns:
(float) – The mean of the data.
Note
If column is not defined (or is None) the
DataFile.setascolumn assignments are used.Todo
Fix the row index when the bounds function is used - see note of
Stoner.Data.max()