파일:Circular convolution example.svg

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (SVG 파일, 실제 크기 462 × 486 픽셀, 파일 크기: 40 KB)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    English: Circular convolution can be expedited by the FFT algorithm, so it is often used with an FIR filter to efficiently compute linear convolutions. These graphs illustrate how that is possible. Note that a larger FFT size (N) would prevent the overlap that causes graph #6 to not quite match all of #3.
    날짜
    출처 자작
    저자 Bob K
    저작권
    (이 파일을 인용하기)
    나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
    Creative Commons CC-Zero 이 파일은 크리에이티브 커먼즈 CC0 1.0 보편적 퍼블릭 도메인 귀속에 따라 이용할 수 있습니다.
    저작물에 본 권리증서를 첨부한 자는 법률에서 허용하는 범위 내에서 저작인접권 및 관련된 모든 권리들을 포함하여 저작권법에 따라 전 세계적으로 해당 저작물에 대해 자신이 갖는 일체의 권리를 포기함으로써 저작물을 퍼블릭 도메인으로 양도하였습니다. 저작권자의 허락을 구하지 않아도 이 저작물을 상업적인 목적을 포함하여 모든 목적으로 복제, 수정·변경, 배포, 공연·실연할 수 있습니다.

    다른 버전 이 파일은 다음에 의해 파생됨: Circular convolution example.png: 
    SVG 발전
    InfoField
     이 SVG 파일의 소스 코드를 하나의 실수입니다.
     이 W3C-무효 벡터 그림은 LibreOffice(으)로 제작되었습니다.
    Gnu Octave source
    InfoField
    click to expand

    This graphic was created with the help of the following Octave script:

    % Options
      frame_background_gray = true;
    
      if frame_background_gray
       graphics_toolkit("qt")         % has "insert text" option
    %  graphics_toolkit("fltk")       % has cursor coordinate readout
       frame_background = .94*[1 1 1];
       d = 2;                         % amount to add to text sizes
      else
       graphics_toolkit("gnuplot")    % background will be white regardless of value below
       frame_background = .94*[1 1 1];
       d=0;
      endif
    
    % (https://octave.org/doc/v4.2.1/Graphics-Object-Properties.html#Graphics-Object-Properties)
    % Speed things up when using Gnuplot
      set(0, "DefaultFigureColor",frame_background)
      set(0, "DefaultAxesFontsize",10+d)   % size of numeric tick labels
      set(0, "DefaultTextFontsize",12+d)
      set(0, "DefaultAxesXtick",[])
      set(0, "DefaultAxesYtick",[])
      set(0, "DefaultLineLinewidth",1)
     
    xmax = 3000;
    %=======================================================
    hfig = figure("position",[100 100 488 512], "color",frame_background);
    
    x1 = .02;               % left margin
    x2 = .02;               % right margin
    y1 = .08;               % bottom margin for annotation
    y2 = .08;               % top margin for title
    dy = .04;               % vertical space between rows
    
    width = 1-x1-x2;
    height= (1-y1-y2-5*dy)/6; % space allocated for each of 6 rows
    
    x_origin = x1;
    y_origin = 1;           % start at top of graph area
    %=======================================================
    y_origin = y_origin -y2 -height;        % position of top row
    % subplot() undoes all the "color" attempts above.  (gnuplot bug)
    subplot("position",[x_origin y_origin width height])
    L = 100;
    f = ones(1,L)/L;
    plot(-100:200-1, [zeros(1,100) f*L zeros(1,100)], "linewidth",2, "color","magenta")
    xlim([-100 xmax]); ylim([0 2])
    title("Circular convolution example", "fontsize",16)
    text(100, 1.6, "h[n]")
    %text(xmax/2, 0.4, '\leftarrow n \rightarrow')
     text(2500, 0.330, '\leftarrow n \rightarrow')
    
    y_origin = y_origin -dy -height;
    subplot("position",[x_origin y_origin width height])
    a = [zeros(1,20) ones(1,L) zeros(1,300) 0.5*ones(1,100) zeros(1,1000-L-20-400)];
    b = [zeros(1,1000-L-20) ones(1,L) zeros(1,20)];
    a1 = [zeros(1,1000) a zeros(1,1000)];
    b1 = [zeros(1,1000) b zeros(1,1000)];
    plot(1:length(a1), a1, "color","blue", 1:length(a1), b1, "color","red")
    xlim([0 xmax]); ylim([0 2])
    text(200, 1.6, "X[n]")
    
    y_origin = y_origin -dy -height;
    subplot("position",[x_origin y_origin width height])
    a1 = conv(a1,f);
    b1 = conv(b1,f);
    plot(1:length(a1), a1+b1, "color","green", "linewidth",2)
    xlim([0 xmax]); ylim([0 2*max(a1)])
     text(200, 1.6, "X[n] * h[n]")
    %text(200, 1.6, "X[n] ∗ h[n]", "interpreter","none") % requires PERL post-processor
    
    y_origin = y_origin -dy -height;
    subplot("position",[x_origin y_origin width height])
    a = [a a a];
    b = [b b b];
    L = 1:length(a);
    plot(L, a, "color","blue", L, b, "color","red")
    xlim([0 xmax]); ylim([0 2.5])
    set(gca,"xtick", [1000 2000]);
    %set(gca,"xticklabel",["N" "2N"])
    set(gca,"xticklabel",[]); text(981,-.5, "N"); text(1955,-.5, "2N")
    text(200, 2.0, 'X_N[n]')
    
    y_origin = y_origin -dy -height;
    subplot("position",[x_origin y_origin width height])
    a1 = conv(a,f);
    b1 = conv(b,f);
    b1(1:90) = b1(3000+[1:90]);
    L = 1:length(a1);
    plot(L,a1,"color","blue", L,b1, "color","red")
    xlim([0 xmax]); ylim([0 2*max(a1)])
    text(200, 1.6, 'components of X_N[n] * h[n]') % can't use "interpreter","none" here
    
    y_origin = y_origin -dy -height;
    subplot("position",[x_origin y_origin width height])
    c = a1+b1;
    L = length(c);
    k=1100;
    plot(1:k, c(1:k), "color","red", k+(1:900), c(k+(1:900)), "color","green",...
            "linewidth",2, (k+900+1):xmax, c((k+900+1):xmax), "color","red")
    xlim([0 xmax]); ylim([0 2*max(a1+b1)])
    text(200, 1.6, 'X_N[n] * h[n]') % can't use "interpreter","none" here
    
     text(1263, -.6, "X[n] * h[n]", "fontsize",16)
    %text(1274, -.6, "X[n] ∗ h[n]", "interpreter","none", "fontsize",16) % requires PERL post-processor
    
    % After a call to annotation(), the cursor coordinates change to the units used below.
    annotation("line", [.367 .367], [.113 .022])
    annotation("line", [.664 .664], [.113 .022])
    

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
    Example of using circular convolution to produce linear convolution

    이 파일에 묘사된 항목

    다음을 묘사함

    image/svg+xml

    bb8b6d187e4336614bc012e902caef51f08aa9cc

    40,476 바이트

    486 화소

    462 화소

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2020년 1월 29일 (수) 01:172020년 1월 29일 (수) 01:17 판의 섬네일462 × 486 (40 KB)wikimediacommons>Bob Kreplace white figure background with gray

    이 파일을 사용하는 문서가 없습니다.