determining the amplitude range of incoming signal

is there an generally accepted way to find the minimum-maximum range of an incoming signal in order to rescale it to another range?

jw-modules min max

1 Like

thanks, so far this code looks closest to what iā€™m looking for.