File:Root-raised-cosine-impulse.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 600 × 314 pixels, file size: 52 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: impulse response of root-raised-cosine filter h(t)={1Ts(1−β+4βπ),t=0β2Ts[(1+2π)sin⁡(π4β)+(1−2π)cos⁡(π4β)],t=±Ts4β1Tssin⁡[πtTs(1−β)]+4βtTscos⁡[πtTs(1+β)]πtTs[1−(4βtTs)2],otherwise
    Deutsch: Impulsantwort des Root-Raised-Cosine Filters
    Date
    Source Own work based on: Raised-cosine-impulse.svg:  by Krishnavedala
    Author Chris828

    Source code

    The logo of Matplotlib – comprehensive library for creating static, animated, and interactive visualizations in Python
    The logo of Matplotlib – comprehensive library for creating static, animated, and interactive visualizations in Python
    This media was created with Matplotlib (comprehensive library for creating static, animated, and interactive visualizations in Python)
    Here is a listing of the source used to create this file.

    Deutsch ∙ македонски ∙ English ∙ +/−

    from numpy import *
    from matplotlib.pyplot import *
    from mpl_toolkits.axes_grid.axislines import SubplotZero
     
    def makeT(lim=1):	# Make the X-axis
    	result = linspace(-lim,lim,1000)
    	return result
    
    def RootRaisedCos(x,B=0,T=1):	# define root raised cosine function
    	return (1/sqrt(T))*(sin(pi*x/T*(1-B))+4*B*x/T*cos(pi*x/T*(1+B)))/(pi*x/T*(1-(4*B*x/T)**2))
    
    fig = figure(figsize=(8,4))
    ax = SubplotZero(fig,111)
    fig.add_subplot(ax)
    ax.grid(True)
    ax.set_xticks([-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10])
    #ax.set_xticklabels(["-10T","-9T","-8T","-7T","-6T","-5T","-4T","-3T","-2T","-T","0","T","2T","3T","4T","5T","6T","7T","8T","9T","10T"])
    ax.set_ylim((-.4,1.4))
    ax.set_yticklabels([])
    for direction in ["xzero","yzero"]:
    	ax.axis[direction].set_axisline_style("->")
    	ax.axis[direction].set_visible(True)
    for direction in ["left","right","bottom","top"]:
    	ax.axis[direction].set_visible(False)
     
    t = makeT(10)
    
    ax.plot(t,RootRaisedCos(t,1.),'b',label=r"$\beta=1$")
    ax.plot(t,RootRaisedCos(t,0.5),'r',label=r"$\beta=0.5$")
    ax.plot(t,RootRaisedCos(t),'g',label=r"$\beta=0$")
     
    ax.text(9.,-.25,r"$t/T_s$")
    ax.text(.5,1.3,r"$h(t)$")
    ax.legend()
    #fig.show()
    fig.savefig("Root-raised-cosine-impulse.svg",bbox_inches="tight",\
    	pad_inches=.15)
    

    Licensing

    Chris828, the copyright holder of this work, hereby publishes it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
    Attribution:
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    28 March 2015

    image/svg+xml

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current12:00, 28 March 2015Thumbnail for version as of 12:00, 28 March 2015600 × 314 (52 KB)wikimediacommons>Chris828{{Information |Description ={{en|1=impulse response of root-raised-cosine filter}} {{de|1=Impulsantwort des Root-Raised-Cosine Filters}} |Source =modified python script from user Krishnavedala |Author =[[User:C...

    There are no pages that use this file.