pyhiperta.timing
Time related parameters (slop, intercept) algorithms.
Functions:
| Name | Description |
|---|---|
slope_intercept |
Computes slope, intercept by fitting a line (LSE) on the |
slope_intercept
Computes slope, intercept by fitting a line (LSE) on the peak_times of each pixels along the ellipsis major axis
This is essentially a less robust batched numpy.linalg.lstsq
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peak_times
|
ndarray
|
The time of maximum signal for each pixels as computed by the integration. shape: ([N_batch,], N_pixels) |
required |
longitudinals
|
ndarray
|
The longitudinal coordinates (coordinate along the ellipsis major axis) of each pixels. shape: ([N_batch,], N_pixels) |
required |
Returns:
| Type | Description |
|---|---|
Tuple[ndarray, ndarray]
|
Slope and intercept values for each waveform. shape of each array: ([Batch,],) |