getScale¶
- sonipy.getScale(x, time_total=None, dtime_min=None, dtime_max=None)¶
Function that takes in a total time between blips, minimum difference between successive blips or maximum difference between successive blips and returns a time scale in units of x value / ms.
- Parameters
- xarr
Array of x positions that will correspond to blip times.
- time_totalfloat
Total time difference between first and last blip (in ms).
- dtime_minfloat
Minimum allowed time difference between blips (in ms).
- dtime_maxfloat
Maximum allowed time difference between blips (in ms).
- Returns
- float
Returns a time scale in units of x value / time (ms).