I'm trying to understand the following code, specifically how to use the results of scipy.signal.freqz where w in w, h = freqz(b, a, worN=8000) is in radians/samples.
I need to convert this to the range of $[0.0, 1.0]$ where $0.5$ corresponds to Nyquist frequency and $1.0$ to sample rate. And I'm trying to figure out the smartest way of doing this and whether I can use a general "any number range to any number range" algorithm or whether the radians/samples unit poses some problems regarding this?
NOTE: I know how to convert frequency from $\textrm{Hz}$ to radians-per-sample.