minmax 🔗
Minmax operation.
MinmaxMixin 🔗
Mixin providing the Minmax operation for a Session
.
This mixin is intended to be used in combination with BaseSession
and should not be instantiated on its own.
Intended usage
class Session(BaseSession, MinmaxMixin): ...
minmax 🔗
minmax(
indata: bytes, ndata: int, low_threshold: int, high_threshold: int
) -> (bytes, float, float)
Performs the minmax operation.
Wraps the vaccel_minmax()
C operation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
| bytes | The input data as a | required |
| int | The number of data to be read provided data object. | required |
| int | The threshold for the min value. | required |
| int | The threshold for the max value. | required |
Returns:
Type | Description |
---|---|
(bytes, float, float) | A tuple containing: - The resulting output data. - The detected min value of the data. - The detected max value of the data. |
Raises:
Type | Description |
---|---|
RuntimeError | If the |
FFIError | If the C operation fails. |