Peak-to-peak value of x. This implementation avoids the problem of signed integer arrays having a peak-to-peak value that cannot be represented with the array's data type. This function returns an unsigned value for signed integer arrays.
(x)
| 20 | |
| 21 | |
| 22 | def _ptp(x): |
| 23 | """Peak-to-peak value of x. |
| 24 | |
| 25 | This implementation avoids the problem of signed integer arrays having a |
| 26 | peak-to-peak value that cannot be represented with the array's data type. |
| 27 | This function returns an unsigned value for signed integer arrays. |
| 28 | """ |
| 29 | return _unsigned_subtract(x.max(), x.min()) |
| 30 | |
| 31 | |
| 32 | def _hist_bin_sqrt(x, range): |
no test coverage detected
searching dependent graphs…