Validate if the value is within the defined range.
Override this method if other methods for checking ranges are required
(e.g. for np.ndarrays).
- Parameters:
- valueAny
Value to check against the range.
- Raises:
- ValueError
If the value is outside the specified bounds.