ZtoRGBpy.LogScale¶
-
class
LogScale
(vmin=0.01, vmax=1.0, *, lmax=0.9)[source]¶ Logarithmic Scaling
Provides a transformation representing a logarithmic transformation, mapping interval \([v_{min}, v_{max}]\) into the interval \([1-l_{max}, 1]\).
-
__call__
(value)[source]¶ Transform value with scaling function
Parameters: value ( array_like
[…]) – Array of values to be transformed, by the scaling function.Returns: scaled ( array
[value.shape
]) – Scaled transformation (\(T(v)\)) ofvalue
Notes
Performs a logarithmic transformation, mapping the interval \([v_{min}, v_{max}]\) into the interval \([1-l_{max}, 1]\) using the transformation:
\[T(v) = (1 - l_{max}) + \frac{v \cdot log_{10} ( |v| - log_{10} ( v_{min} ) \cdot l_{max} } {|v| \cdot ( log_{10} ( v_{max} ) - log_{10} ( v_{min} ) )}\]
-