| 528 | input_dims = output_dims = 1 |
| 529 | |
| 530 | def __init__(self, base, linthresh, linscale): |
| 531 | super().__init__() |
| 532 | if base <= 1.0: |
| 533 | raise ValueError("'base' must be larger than 1") |
| 534 | if linthresh <= 0.0: |
| 535 | raise ValueError("'linthresh' must be positive") |
| 536 | if linscale <= 0.0: |
| 537 | raise ValueError("'linscale' must be positive") |
| 538 | self.base = base |
| 539 | self.linthresh = linthresh |
| 540 | self.linscale = linscale |
| 541 | |
| 542 | @_api.deprecated("3.11", name="invlinthresh", obj_type="attribute", |
| 543 | alternative=".inverted().transform(linthresh)") |