module documentation

Undocumented

Function quantise No summary
Type Variable Number Undocumented
Type Variable T Undocumented
@check_annotations
def quantise(x, n_bits=16): (source)
Parameters
x:Trange to quantise (expected values are in range [-1.0, 1.0])
n_bits:Annotated[int, ValueRange(min_value=2)]Number of bits (at least 2 is required)
Returns
T

Undocumented

Value
TypeVar('Number', float, int)

Undocumented

Value
TypeVar('T', float, Iterable[float], np.ndarray)