[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.        ])

  

posted @ 2017-04-11 15:00  KennyRom  阅读(1102)  评论(0编辑  收藏  举报