摘要: 结果: [ 0 1 2 3 4 5 6 7 8 9 10 11][ 0. 0.08333333 0.16666667 0.25 0.33333333 0.41666667 0.5 0.58333333 0.66666667 0.75 0.83333333 0.91666667][ 0.9596216 阅读全文
posted @ 2018-03-04 17:54 soyosuyang 阅读(453) 评论(0) 推荐(0)
摘要: #-*- coding: utf-8 -*- ''' numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None) 在指定的间隔内返回均匀间隔的数字。 返回num个均匀分布的样本,在[start, stop]。 @author: soyo ''' import numpy as np import ma... 阅读全文
posted @ 2018-03-04 17:49 soyosuyang 阅读(991) 评论(0) 推荐(0)