Core.Interpolations package
Submodules
Core.Interpolations.linear_interpolation module
- Core.Interpolations.linear_interpolation.linear_interpolate(in_value, in_min, in_max, out_min, out_max)[source]
Performs linear interpolation to estimate an output value (out) corresponding to an input value (in).
- Parameters:
in_value (float) – The input value for which to interpolate the output.
in_min (float) – The minimum value of the input range.
in_max (float) – The maximum value of the input range.
out_min (float) – The minimum value of the output range.
out_max (float) – The maximum value of the output range.
- Returns:
The interpolated output value for the given input.
- Return type:
float
Notes
If in_max equals in_min, returns the average of out_min and out_max to avoid division by zero.
Module contents
Core Interpolations Module
This module contains core interpolation algorithms including linear interpolation. These are fundamental interpolation methods used across the UVisBox package.