runtimepy.primitives.scaling
index
/home/vkottler/src/vkottler/workspace/runtimepy/runtimepy/primitives/scaling.py

A module implementing interfaces for working with channel scaling polynomials.

 
Functions
       
apply(value: Union[float, int], scaling: list[typing.Union[float, int]] = None) -> Union[float, int]
Apply a scaling polynomial to a value.
invert(value: Union[float, int], scaling: list[typing.Union[float, int]] = None, should_round: bool = False) -> Union[float, int]
Apply a scaling polynomial to a value.

 
Data
        ChannelScaling = list[typing.Union[float, int]]
Numeric = typing.Union[float, int]
Union = typing.Union