Interface GetRescalerOptions

interface GetRescalerOptions {
    algorithm?: RescalerAlgorithm;
    algorithmOptions?: Record<string, number>;
    clamp?: boolean;
    originalMax?: number;
    originalMin?: number;
    targetMax?: number;
    targetMin?: number;
}

Properties

algorithm?: RescalerAlgorithm

The algorithm to use for the rescaling

'linear'
algorithmOptions?: Record<string, number>

Options for the algorithm

{}
clamp?: boolean

If true, the value will be clamp to the target range

true
originalMax?: number

The maximum value of the original range

1
originalMin?: number

The minimum value of the original range

0
targetMax?: number

The new maximum value of the target range

1
targetMin?: number

The new minimum value of the target range

0