powered by
Helper function to apply interpolation
interpolate_signal( original_samples, original_values, new_samples, interpolation_method )