| 18.7.2 Algorithms (Coherence)Cohere-Algorithm Power spectral density is the Fourier transform of correlation. From the discrete correlation theorem, we know that the Fourier transform of the correlation of two signals is equal to the product of a Fourier transform of one signal and a conjugated Fourier transform of the other. Therefore, power spectral density can be calculated with a Fourier transform. Additionally, the cross power density of two signals, x and y, can be computed as follows:
 /math-77dd31c1cd9ff13ad4caa9707f3feb2e.png?v=0) 
 where X and Y are the Fourier transform of x and y respectively, and * denotes the complex conjugation.
 Similarly, auto power density can be computed as follows:
 /math-400f95ebc472374fd9314f179de00472.png?v=0) 
 Thus, the computation of coherence can be rewritten as follows:
 /math-84b126113f548847e1ff06797292b68c.png?v=0) 
 The input signals, x and y, are divided into overlapping sections. The coherence of each section is then computed using the above equation.
 Automatic Computation of Sampling Interval
 When <Auto> is selected for Sampling Interval, the sampling interval needed in the computation is computed automatically by Origin. 
 The automatically computed sampling interval is the average increment of the time sequence, which is usually from the X column associated with the input signal. If there is no associated X column, the row numbers will be used. Note that if Origin fails to get the average increment, the sampling interval will be set to 1.
 Windows
 Specifies the window type used by FFT. The default option is Hanning.
 Rectangle 
Rectangular window: ![w[n] = 
\begin{cases} 
  1,  & \mbox{if }0 \leq n \leq N-1 \\
  0, & \mbox{otherwise } 
\end{cases} w[n] = 
\begin{cases} 
  1,  & \mbox{if }0 \leq n \leq N-1 \\
  0, & \mbox{otherwise } 
\end{cases}](//d2mvzyuse3lwjc.cloudfront.net/doc/en/UserGuide/images/Algorithm_(Cohere)/math-1dff02816a08f5abee4db570718fae2e.png?v=0)
Welch 
Welch window ![w[n]=1-\left[ \frac{n-\frac 12(N-1)}{\frac 12(N+1)}\right] ^2\,\! w[n]=1-\left[ \frac{n-\frac 12(N-1)}{\frac 12(N+1)}\right] ^2\,\!](//d2mvzyuse3lwjc.cloudfront.net/doc/en/UserGuide/images/Algorithm_(Cohere)/math-6e73eab9df4bcc92805e0be4ccc831c1.png?v=0) 
Triangular 
Triangular Window: odd: /math-0301923ac9ba030df614e6d597b61aca.png?v=0)  
 even: /math-8e83f30fc0b782e1d8b13c070ff8819d.png?v=0)
Bartlett 
Bartlett window ![w[n]=\frac 2{N-1}\left[ \frac{N-1}2-\left| n-\frac{N-1}2\right| \right]  \,\! w[n]=\frac 2{N-1}\left[ \frac{N-1}2-\left| n-\frac{N-1}2\right| \right]  \,\!](//d2mvzyuse3lwjc.cloudfront.net/doc/en/UserGuide/images/Algorithm_(Cohere)/math-e66a9f4dcc74b3ab6be533c1c74db331.png?v=0)
Hanning 
Hann Window ![w[n]=\frac 12\left[ 1-\cos (\frac{2\pi n}{N-1})\right]   \,\! w[n]=\frac 12\left[ 1-\cos (\frac{2\pi n}{N-1})\right]   \,\!](//d2mvzyuse3lwjc.cloudfront.net/doc/en/UserGuide/images/Algorithm_(Cohere)/math-f625e1fbe6f2ba1e906c542714a5a198.png?v=0)
Hamming 
Hamming window: ![w[n]=0.54-0.46\cos (\frac{2\pi n}{N-1})  \,\! w[n]=0.54-0.46\cos (\frac{2\pi n}{N-1})  \,\!](//d2mvzyuse3lwjc.cloudfront.net/doc/en/UserGuide/images/Algorithm_(Cohere)/math-b6803ad49e62341c7d027fda8b337cb8.png?v=0) 
Blackman 
Blackman window ![w[n]=0.42-0.5\cos (\frac{w\pi n}{N-1})+0.08\cos (\frac{4\pi n}{N-1})  \,\! w[n]=0.42-0.5\cos (\frac{w\pi n}{N-1})+0.08\cos (\frac{4\pi n}{N-1})  \,\!](//d2mvzyuse3lwjc.cloudfront.net/doc/en/UserGuide/images/Algorithm_(Cohere)/math-53be39cb73653898ae42aa3e07614275.png?v=0) 
Gaussian
Gaussian window:![w[n]=exp(-0.5(Alpha( \frac{2n}{N-1}-1 ))^2) \,\! w[n]=exp(-0.5(Alpha( \frac{2n}{N-1}-1 ))^2) \,\!](//d2mvzyuse3lwjc.cloudfront.net/doc/en/UserGuide/images/Algorithm_(Cohere)/math-fab7a042f67f1dfb6dc5556e228508ec.png?v=0)where Alpha is specified by the Alpha parameter.
Kaiser
Kaiser window:![w[n]=I(beta*\sqrt{1-(\frac{2n}{N-1}-1)^2}) / I(beta) \,\! w[n]=I(beta*\sqrt{1-(\frac{2n}{N-1}-1)^2}) / I(beta) \,\!](//d2mvzyuse3lwjc.cloudfront.net/doc/en/UserGuide/images/Algorithm_(Cohere)/math-04b7bbeb549a0b1d5ee22e3d50305676.png?v=0)where I(ix) denotes Bessel Function and beta is specified by the Beta parameter.
 |