The lyapunovExponent function in the Predictive Maintenance Toolbox gives incorrect result when the input signal has angular frequency a multiple of \pi

조회 수: 5 (최근 30일)
The lyapunovExponent function provided in the Predictive Maintenance toolbox (https://in.mathworks.com/help/predmaint/ref/lyapunovexponent.html) works very well but fails to provide the correct answer when the signal has an angular frequency of multiple of $\pi$. Given here are two signals with angular frequency $4\pi$ and $4\pi+0.01$. It works fine when the angular frequency is slightly off the multiple of $\pi$. The expected result is the LE as close to zero. But gives erroneous positive value when the angular frequency is a multiple of $\pi$. Is there a workaround about this?
dt=0.01;
t=0:0.01:49.99;
fs=1/dt;
x=sin(4*pi*t);
y=sin(((4*pi)+0.01)*t);
lag=13;
dim=2;
lyapunovExponent(x,fs,lag,dim,'ExpansionRange',800)
lyapunovExponent(y,fs,lag,dim,'ExpansionRange',800)

채택된 답변

Bora Eryilmaz
Bora Eryilmaz 2023년 2월 23일
편집: Bora Eryilmaz 2023년 2월 23일
When the signal is periodic, with no noise, the nearest neighbor of each data point in the signal on the phase plane will be essentially at the same location on the next cycle (or very close depending on sampling rate fs). So the distance to the nearest neigbor of each point will be essentially zero. This is why you are seeing the very small y-axis values on both plots (around e^-3300 and e^-770). In such a case, the linear approximations to the Average Log Divergence curves are no longer reliable. The slope of the linear approximation is the Lyapunov Exponent, which will also be inaccurate in this case.
A quick and dirty workaround is to add a little bit of noise to the signals so that essentially zero-distance neighbors are eliminated.
dt = 0.01;
t = 0:0.01:49.99;
fs = 1/dt;
x = sin(4*pi*t);
y = sin(((4*pi)+0.01)*t);
lag = 13;
dim = 2;
noise = rand(size(x)) / 10;
lyapunovExponent(x+noise, fs, lag, dim, 'ExpansionRange', 800)
lyapunovExponent(y+noise, fs, lag, dim, 'ExpansionRange', 800)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by