mode¶
- sofia_redux.instruments.forcast.background.mode(data)[source]¶
Return the most common data point from discrete or nominal data
If there is not exactly one most common value, the minimum value (of the most common values) will be returned.
- Parameters:
- datanumpy.ndarray
- Returns:
- The most common value
- Raises:
- ValueError
If data is empty