Returns a function which can do min-max normalisation, baking-in the min and max values.
// Normalise with min value of 20, max of 100const fn = compute(20, 100);// Use function with input value of 40fn(40); Copy
// Normalise with min value of 20, max of 100const fn = compute(20, 100);// Use function with input value of 40fn(40);
Minimum value of range
Maximum value of range
Whether to clamp input value to min/max range. Default: false
Returns a function which can do min-max normalisation, baking-in the min and max values.