Analysis: Signal Processing: Coherence
Calculate coherence between two signals
This feature is for OriginPro only.
1. cohere ix1:=Col(1) ix2:=Col(2);
2. cohere ix1:=Col(1) ix2:=Col(2) win:=bartlett winlen:=32 fftlen:=64 overlap:=0;
3. cohere ix1:=Col(1) ix2:=Col(2) oy:=(Col(3), Col(4));
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input | ix1 |
Input vector |
|
Specifies the first input signal |
Input | ix2 |
Input vector |
|
Specifies the second input signal |
Sampling Interval | interval |
Input double |
|
Specifies the sampling interval. The default is <auto>, which corresponds to an automatically computed interval. |
FFT Length | fftlen |
Input int |
|
Specifies the FFT length |
Window Type | win |
Input int |
|
Specifies the window function used in FFT. Option list
|
Window Length | winlen |
Input int |
|
Specifies the windows size for FFT. It cannot be larger than the fftlen. |
Overlap | overlap |
Input int |
|
Specifies the number of data points by which the window sections overlap. It must be a positive value which is less than winlen. |
Alpha | alpha |
Input double |
|
This variable is only available when window type is Gaussian. It specifies the Alpha parameter (the reciprocal of the standard deviation) for Gaussian window. |
Beta | beta |
Input double |
|
This variable is only available when window type is Kaiser. It specifies the Beta parameter for Kaiser window. |
Output | oy |
Output XYRange |
|
Specifies the output. See the syntax here. |
1. To compute the coherence using default settings, to data in columns 1 and 2 of the active worksheet, use the script command:
cohere ix1:=Col(1) ix2:=Col(2);
2. To compute coherence using a pre-saved theme file, save your preferences in the cohere dialog, and then execute it by typing the following script command, using your own saved-theme title:
cohere -t "my coherence theme.oth"
For more information, please refer to our User Guide.
Keywords:fourier, fft, window, overlap