spiketools.utils.data.compute_range¶
- spiketools.utils.data.compute_range(data)[source]¶
Compute the range of an array of data.
- Parameters:
- dataarray
Array of numerical data.
- Returns:
- min, maxfloat
Minimum and maximum values of the data array.
Examples
Compute the range of some position data:
>>> data = np.array([1.5, 1, 0.5, 2, 3, 2.5]) >>> compute_range(data) (0.5, 3.0)