首页 > 技术文章 > [Python] numpy.logspace

KennyRom 2017-04-11 15:00 原文

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

  

推荐阅读