FUNCTION CORRELOGRAMPSD,X,Y,LAG,T,NF,R ;+ ; PSD=CORRELOGRAMPSD(X,Y,LAG,T,NF) ; computes the power spectrum density by ; the Blackman-Tukey correlogram method. ; ; INPUTS ; X - A Sequence of length NX ; Y - A Sequence of lengty NY ; LAG - The maximum lag to be used. ; T - The interval between samples ; NF - The number of frequency points ; ; OUTPUT ; PSD = Power Spectral Density estimate at NF points ; ; Notes: ; The length of the correlation sequence is ; N=NX