[Python] numpy.logspace

numpy.logspace(startstopnum=50endpoint=Truebase=10.0dtype=None)

starting value  :=  base**start

stopping value  :=  base**stop

base = 10.0  :=  the base of the log space

Ex:

Input:

np.logspace(1,2,10, base = 10.0)

  

Output:

array([  10.        ,   12.91549665,   16.68100537,   21.5443469 ,
         27.82559402,   35.93813664,   46.41588834,   59.94842503,
         77.42636827,  100.        ])

  

原文地址:https://www.cnblogs.com/KennyRom/p/6693567.html