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

Default

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

Options for the algorithm

Default

{}
clamp?: boolean

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

Default

true
originalMax?: number

The maximum value of the original range

Default

1
originalMin?: number

The minimum value of the original range

Default

0
targetMax?: number

The new maximum value of the target range

Default

1
targetMin?: number

The new minimum value of the target range

Default

0