I have a one dimensional Array where the datas are between 1 and 500. The distribution of the data looks like log-normal.
What i want is to resample the array to log(data)
i am not sure about which function to use:
my rescale Function looks like this now, but i am not sure if its right:
def ScaleData(dataset):
datas = []
for x in np.nditer(dataset):
a = np.log(x)
datas.append(a)
return np.array(datas)
Test:
38, 48, 39, 83, 64, 57
goes to:
3.63758616, 3.87120101, 3.66356165, 4.41884061, 4.15888308, 4.04305127
Is that right?
Best
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.