user_image
By  SevenZzzzy    On   2019年12月6日 11:23

numpy.logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None) 用于创建一个等比数列 start:(start次方),序列的起始值,为: base **(^) start。 stop:(stop次方),序列的终止值,为:base **(^) stop. 如果endpoint为True,该值包含于数列中。 num:要生成的等步长的样本数量,默认为50 endpoint:该值为True时,数列中包含stop值,反之不包含,默认是True base:底数。 dtype:ndarray的数据类型 numpy.linspace(start,stop,num=50,endpoint=True,retstep=False,dtpye=None) 用于创建一个等差数列 start:序列的起始值 stop:序列的终止值 num:要生成的等步长的样本数量,默认为50 endpoint:该值为True时,数列中包含stop值,反之不包含,默认是True retstep:如果为True时,生成的数组中会显示间距,反之不显示 dtype:数组的数据类型