Nominal#
- Nominal(target=None, magnitude=1, bits=None)[source]#
Converts a target value to a binary representation using a specified number of bits.
- Parameters:
- Returns:
- numpy.ndarray:
The binary representation of the target value(s).
- Raises:
- ValueError:
If the number of bits is less than the maximum stimulus value.
- ValueError:
If the number of bits is 0 and the target value is less than 1.