figs.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:extract 作者: dblalock 项目源码 文件源码
def makeThickSine():
    sineNoiseStd = 0
    seqLen = 750
    squareLen = seqLen / 17.
    sineLen = int(squareLen * 4)
    sine1 = synth.sines(sineLen, noiseStd=sineNoiseStd)

    sb.set_style('white')
    _, ax = plt.subplots()
    ax.plot(sine1, lw=16)
    ax.set_xlim([-squareLen, len(sine1) + squareLen])
    ax.set_ylim([-2, 2])

    sb.despine(left=True)
    plt.show()

# def makeWeirdSine(squareLen, numSquares, sineNoiseStd, **kwargs):
#   firstQuarterFrac = .4
#   length = int(squareLen * numSquares)
#   firstQuarterLen = int(firstQuarterFrac * length)
    # sine1 = synth.sines(firstQuarterLen, periods=.25, **kwargs)
    # sine2 = synth.sines(firs)
    # sine2 = synth.warpedSine(sineLen, firstHalfFrac=.67,
    #       noiseStd=sineNoiseStd)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号