Hyperbolic sine transformation used by `.AsinhScale`
| 660 | |
| 661 | |
| 662 | class InvertedAsinhTransform(Transform): |
| 663 | """Hyperbolic sine transformation used by `.AsinhScale`""" |
| 664 | input_dims = output_dims = 1 |
| 665 | |
| 666 | def __init__(self, linear_width): |
| 667 | super().__init__() |
| 668 | self.linear_width = linear_width |
| 669 | |
| 670 | def transform_non_affine(self, values): |
| 671 | return self.linear_width * np.sinh(values / self.linear_width) |
| 672 | |
| 673 | def inverted(self): |
| 674 | return AsinhTransform(self.linear_width) |
| 675 | |
| 676 | |
| 677 | class AsinhScale(ScaleBase): |
no outgoing calls
no test coverage detected
searching dependent graphs…