파일:MUSIC MVDR.png

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (1,342 × 647 픽셀, 파일 크기: 112 KB, MIME 종류: image/png)

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

    파일 설명

    설명
    English: Spatial frequencies estimation (source code).
    Русский: Оценка пространтвенных частот (исходный код).
    날짜
    출처 자작
    저자 Kirlf
    PNG 발전
    InfoField
     이 PNG 컴퓨터 그래픽스는 Matplotlib(으)로 제작되었습니다.
    소스 코드
    InfoField

    Python code

    """
    Developed by Vladimir Fadeev
    (https://github.com/kirlf)
    Kazan, 2017 / 2020
    Python 3.7
    """
    import numpy as np
    import matplotlib.pyplot as plt
    
    """
    Received signal model:
    X = A*S + W
    
    where 
    A = [a(theta_1) a(theta_2) ... a(theta_d)] 
    is the matrix of steering vectors 
    (dimension is M x d, 
    
    M is the number of sensors, 
    
    d is the number of signal sources),
    
    A steering vector represents the set of phase delays 
    a plane wave experiences, evaluated at a set of array elements (antennas). 
    
    The phases are specified with respect to an arbitrary origin.
    theta is Direction of Arrival (DoA), 
    
    S = 1/sqrt(2) * (X + iY)
    is the transmit (modulation) symbols matrix 
    (dimension is d x T, 
    
    T is the number of snapshots)
    (X + iY) is the complex values of the signal envelope,
    
    W = sqrt(N0/2)*(G1 + jG2)
    is additive noise matrix (AWGN)
    (dimension is M x T),
    
    N0 is the noise spectral density,
    
    G1 and G2 are the random Gaussian distributed values.
    """
    
    M = 10 # number of sensors 
    SNR = 10 # Signal-to-Noise ratio (dB) 
    d = 3 # number sources of EM waves
    N = 50 # number of snapshots
    
    """ Signal matrix """
    
    S = ( np.sign(np.random.randn(d,N)) + 1j * np.sign(np.random.randn(d,N)) ) / np.sqrt(2) # QPSK
    
    """ Noise matrix 
    
    Common formula:
    AWGN = sqrt(N0/2)*(G1 + jG2), 
    
    where G1 and G2 - independent Gaussian processes.
    Since Es(symbol energy) for QPSK is 1 W, noise spectral density: 
    	
    N0 = (Es/N)^(-1) = SNR^(-1) [W] (let SNR = Es/N0); 
    
    or in logarithmic scale::
    	
    SNR_dB = 10log10(SNR) -> N0_dB = -10log10(SNR) = -SNR_dB [dB]; 
    
    We have SNR in logarithmic (in dBs), convert to linear:
    
    SNR = 10^(SNR_dB/10) -> sqrt(N0) = (10^(-SNR_dB/10))^(1/2) = 10^(-SNR_dB/20) 
    """
    
    W = ( np.random.randn(M,N) + 1j * np.random.randn(M,N) ) / np.sqrt(2) * 10**(-SNR/20) # AWGN
    
    mu_R = 2*np.pi / M  # standard beam width
    
    resolution_cases = ((-1., 0, 1.), (-0.5, 0, 0.5), (-0.3, 0, 0.3)) # resolutions 
    for idxm, c in enumerate(resolution_cases):
    
        """ DoA (spatial frequencies) """
        mu_1 = c[0]*mu_R
        mu_2 = c[1]*mu_R
        mu_3 = c[2]*mu_R
    
        """ Steering vectors """
        a_1 = np.exp(1j*mu_1*np.arange(M))
        a_2 = np.exp(1j*mu_2*np.arange(M))
        a_3 = np.exp(1j*mu_3*np.arange(M))
    
        A = (np.array([a_1, a_2, a_3])).T # steering matrix 
        
        """ Received signal """
        X = np.dot(A,S) + W 
    
        """ Rxx """
        R = np.dot(X,np.matrix(X).H)
    
        U, Sigma, Vh = np.linalg.svd(X, full_matrices=True)
        U_0 = U[:,d:] # noise sub-space
    
        thetas = np.arange(-90,91)*(np.pi/180) # azimuths
        mus = np.pi*np.sin(thetas) # spatial frequencies
        
        a = np.empty((M, len(thetas)), dtype = complex)
        for idx, mu in enumerate(mus):
            a[:,idx] = np.exp(1j*mu*np.arange(M))
    
        # MVDR:
        S_MVDR = np.empty(len(thetas), dtype = complex)
        for idx in range(np.shape(a)[1]):
            a_idx =  (a[:, idx]).reshape((M, 1))
            S_MVDR[idx] = 1 / (np.dot(np.matrix(a_idx).H, np.dot(np.linalg.pinv(R),a_idx)))
    
        # MUSIC:
        S_MUSIC = np.empty(len(thetas), dtype = complex)
        for idx in range(np.shape(a)[1]):
            a_idx =  (a[:, idx]).reshape((M, 1))
            S_MUSIC[idx] = np.dot(np.matrix(a_idx).H,a_idx)\
            / (np.dot(np.matrix(a_idx).H, np.dot(U_0,np.dot(np.matrix(U_0).H,a_idx))))
    
        plt.subplots(figsize=(10, 5), dpi=150)
        plt.semilogy(thetas*(180/np.pi), np.real( (S_MVDR / max(S_MVDR))), color='green', label='MVDR')
        plt.semilogy(thetas*(180/np.pi), np.real((S_MUSIC/ max(S_MUSIC))), color='red', label='MUSIC')
        plt.grid(color='r', linestyle='-', linewidth=0.2)
        plt.xlabel('Azimuth angles (degrees)')
        plt.ylabel('Power (pseudo)spectrum (normalized)')
        plt.legend()
        plt.title('Case #'+str(idxm+1))
        plt.show()
    
    """ References
    1. Haykin, Simon, and KJ Ray Liu. Handbook on array processing and sensor networks. Vol. 63. John Wiley & Sons, 2010. pp. 102-107
    2. Hayes M. H. Statistical digital signal processing and modeling. – John Wiley & Sons, 2009.
    3. Haykin, Simon S. Adaptive filter theory. Pearson Education India, 2008. pp. 422-427
    4. Richmond, Christ D. "Capon algorithm mean-squared error threshold SNR prediction and probability of resolution." IEEE Transactions on Signal Processing 53.8 (2005): 2748-2764.
    5. S. K. P. Gupta, MUSIC and improved MUSIC algorithm to esimate dorection of arrival, IEEE, 2015.
    """
    

    라이선스

    나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
    w:ko:크리에이티브 커먼즈
    저작자표시 동일조건변경허락
    이용자는 다음의 권리를 갖습니다:
    • 공유 및 이용 – 저작물의 복제, 배포, 전시, 공연 및 공중송신
    • 개작 – 저작물의 개작, 수정, 2차적저작물 창작
    다음과 같은 조건을 따라야 합니다:
    • 저작자표시 – 적절한 저작자 표시를 제공하고, 라이선스에 대한 링크를 제공하고, 변경사항이 있는지를 표시해야 합니다. 당신은 합리적인 방식으로 표시할 수 있지만, 어떤 방식으로든 사용권 허가자가 당신 또는 당신의 사용을 지지하는 방식으로 표시할 수 없습니다.
    • 동일조건변경허락 – 만약 당신이 이 저작물을 개작 또는 변형하거나 이 저작물을 기반으로 제작하는 경우, 당신은 당신의 기여물을 원저작물과 동일하거나 호환 가능한 라이선스에 따라 배포하여야 합니다.

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
    The frequency estimation based on MUSIC and MVDR algorithms.

    이 파일에 묘사된 항목

    다음을 묘사함

    위키데이터 항목 없는 어떤 값

    114,951 바이트

    647 화소

    1,342 화소

    75107edff05fce426ccb911cfb2c3350748aa8cf

    파일 역사

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

    날짜/시간섬네일크기사용자설명
    현재2019년 2월 18일 (월) 06:412019년 2월 18일 (월) 06:41 판의 섬네일1,342 × 647 (112 KB)wikimediacommons>KirlfUser created page with UploadWizard

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