utils.expand_endpoints
utils.expand_endpoints(endpoints, resolution=101)Expand endpoint pairs into a series of points for plotting.
This is an internal convenience function used for creating density plots.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| endpoints | np.ndarray | An (n x 2) array of [lower, upper] endpoints. | required |
| resolution | int | The number of points to interpolate between each endpoint pair, by default 101. | 101 |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | A flattened 1D array of the interpolated points. |