Modify the range of collection of numbers on scale of log5 for better visualization. It works best between 0-100. max,min is the max and min value from the present list and, a and b are the max and min values you want. It will set values between a and b. Then convert it to the scale of log5
Project description
#Modify Range of numbers
Modify the range of collection of numbers on scale of log5 for better visualization. It works best between 0-100. max,min is the max and min value from the present list and, a and b are the max and min values you want. It will set values between a and b. Then convert it to the scale of log5.
Run the following to install:
pip install modify_range
'''Is based on the simple formula:
f(x) = (b-a)(x-min)/(max-min)'''
To use:
from modify_range import change_range
...
...
x = change_range(x,min,max,a,b)
Here, x = integer from the list min = min value from the list max = max value from the list a = new maximum value b = new minimum value
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for modify_range-0.0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4abd024177270a1e2a140b2cdf342262af87a350b06ee6916cdd8d09e5d6e94a |
|
MD5 | aedb34f4e8f8a14cf7a75c8050d9bcdd |
|
BLAKE2b-256 | bd39c46af08b450d623993be9a19f220bb1ac6914c976a08c3c09d3d2157525c |